{"id":3117,"date":"2025-02-17T14:10:05","date_gmt":"2025-02-17T19:10:05","guid":{"rendered":"https:\/\/stepinto.vision\/?p=3117"},"modified":"2025-02-17T14:10:05","modified_gmt":"2025-02-17T19:10:05","slug":"realitykit-basics-update-closure","status":"publish","type":"post","link":"https:\/\/stepinto.vision\/example-code\/realitykit-basics-update-closure\/","title":{"rendered":"RealityKit Basics: update closure"},"content":{"rendered":"\n<p>The update closure will run when any referenced state changes. We can reach into our RealityView content to modify entities or components.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Overview<\/h2>\n\n\n\n<p>We touched on the update closure in the post on <a href=\"https:\/\/stepinto.vision\/example-code\/realitykit-basics-realityview\/\" data-type=\"post\" data-id=\"2685\">RealityView<\/a>, but let&#8217;s take a closer look. The update closure is our bridge from the 3D world of RealityKit to SwiftUI. There are three concepts we need use to make this work for us.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Some state for our view. This could be simple <code>@State<\/code> variables like in this example, or more complex data defined where in our app.<\/li>\n\n\n\n<li>Something to modify the state. In this example, we have two toggle buttons in the toolbar.<\/li>\n\n\n\n<li>The <code>update<\/code> closure. Any code we define here will execute whenever the update closure is triggered.<\/li>\n<\/ol>\n\n\n\n<p>When is update triggered? <em>Generally speaking<\/em> <a href=\"#\u2020\">\u2020<\/a>, whenever one of or more bit of referenced state is modified. For example, this will only run when <code>showEarth<\/code> or <code>showMoon<\/code> has changed. If we had a third state variable called <code>showSun<\/code>, changes to it would not trigger this since we are not using it in the closure.<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#000000;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"} update: { content in\n    if let earth = content.entities.first?.findEntity(named: &quot;Earth&quot;), let moon = content.entities.first?.findEntity(named: &quot;Moon&quot;) {\n        earth.isEnabled = showEarth\n        moon.isEnabled = showMoon\n    }\n}\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #000000\">} update: { content <\/span><span style=\"color: #AF00DB\">in<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    <\/span><span style=\"color: #AF00DB\">if<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #0000FF\">let<\/span><span style=\"color: #000000\"> earth = content.<\/span><span style=\"color: #001080\">entities<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #001080\">first<\/span><span style=\"color: #000000\">?.<\/span><span style=\"color: #795E26\">findEntity<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #795E26\">named<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #A31515\">&quot;Earth&quot;<\/span><span style=\"color: #000000\">), <\/span><span style=\"color: #0000FF\">let<\/span><span style=\"color: #000000\"> moon = content.<\/span><span style=\"color: #001080\">entities<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #001080\">first<\/span><span style=\"color: #000000\">?.<\/span><span style=\"color: #795E26\">findEntity<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #795E26\">named<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #A31515\">&quot;Moon&quot;<\/span><span style=\"color: #000000\">) {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">        earth.<\/span><span style=\"color: #001080\">isEnabled<\/span><span style=\"color: #000000\"> = showEarth<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">        moon.<\/span><span style=\"color: #001080\">isEnabled<\/span><span style=\"color: #000000\"> = showMoon<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>We can access the <code>content<\/code> from RealityView, then query the entity graph to find something that needs to change.<\/p>\n\n\n\n<p>It&#8217;s important to note that this update closure is not like an update or tick function in a game engine.  Those run every frame, whereas this only runs when the state it references changes.<\/p>\n\n\n\n<p>Something else to keep in mind is that this <strong>whole closure<\/strong> will fire when <strong>any state<\/strong> it uses has changed. If either <code>showEarth<\/code> <strong>or<\/strong> <code>showMoon<\/code> is changed, this update will be triggered. If you have very complex views with a lot of state, you may run into situations where entities updated unnecessarily.<\/p>\n\n\n\n<p>Lastly, update will fire every time a bit if state is modified. If the action you are performing is complex, that may not be idea. For example, I&#8217;d avoid using sliders or other controls that rapidly change state variables, as each change would trigger an update.<\/p>\n\n\n\n<p>In a future post, we&#8217;ll look at some other methods to update our entities based on changes to state. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Video Demo<\/h2>\n\n\n\n\t\t<figure class=\"wp-block-jetpack-videopress jetpack-videopress-player\" style=\"\" >\n\t\t\t<div class=\"jetpack-videopress-player__wrapper\"> <div class=\"jetpack-video-wrapper\"><iframe title=\"VideoPress Video Player\" aria-label='VideoPress Video Player' width='720' height='540' src='https:\/\/videopress.com\/embed\/eIzOHW8g?cover=1&amp;autoPlay=0&amp;controls=1&amp;loop=0&amp;muted=0&amp;persistVolume=1&amp;playsinline=0&amp;preloadContent=metadata&amp;useAverageColor=1&amp;hd=0' frameborder='0' allowfullscreen data-resize-to-parent=\"true\" allow='clipboard-write'><\/iframe><script src='https:\/\/v0.wordpress.com\/js\/next\/videopress-iframe.js?m=1739540970'><\/script><\/div><\/div>\n\t\t\t\n\t\t\t\n\t\t<\/figure>\n\t\t\n\n\n<h2 class=\"wp-block-heading\">Full Example Code<\/h2>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#000000;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"struct Example049: View {\n\n    \/\/ 1. We'll watch these state variables\n    @State var showMoon = true\n    @State var showEarth = true\n\n    var body: some View {\n        RealityView { content in\n            if let scene = try? await Entity(named: &quot;RKBasicsLoading&quot;, in: realityKitContentBundle) {\n                content.add(scene)\n                scene.position.y = -0.4\n            }\n        } update: { content in\n\n            \/\/ 3. Find the Earth and Moon entities and update their visibility based on our state\n            if let earth = content.entities.first?.findEntity(named: &quot;Earth&quot;), let moon = content.entities.first?.findEntity(named: &quot;Moon&quot;) {\n\n                earth.isEnabled = showEarth\n                moon.isEnabled = showMoon\n            }\n        }\n        \/\/ 2. SwiftUI toolbar and toggles to modify our state\n        .toolbar {\n            ToolbarItem(placement: .bottomOrnament, content: {\n                HStack {\n                    Toggle(&quot;Show Earth&quot;, isOn: $showEarth)\n                        .toggleStyle(.button)\n                    Toggle(&quot;Show Moon&quot;, isOn: $showMoon)\n                        .toggleStyle(.button)\n                }\n            })\n        }\n    }\n}\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #0000FF\">struct<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #267F99\">Example049<\/span><span style=\"color: #000000\">: View {<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    <\/span><span style=\"color: #008000\">\/\/ 1. We&#39;ll watch these state variables<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    <\/span><span style=\"color: #0000FF\">@State<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #0000FF\">var<\/span><span style=\"color: #000000\"> showMoon = <\/span><span style=\"color: #0000FF\">true<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    <\/span><span style=\"color: #0000FF\">@State<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #0000FF\">var<\/span><span style=\"color: #000000\"> showEarth = <\/span><span style=\"color: #0000FF\">true<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    <\/span><span style=\"color: #0000FF\">var<\/span><span style=\"color: #000000\"> body: some View {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">        RealityView { content <\/span><span style=\"color: #AF00DB\">in<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">            <\/span><span style=\"color: #AF00DB\">if<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #0000FF\">let<\/span><span style=\"color: #000000\"> scene = <\/span><span style=\"color: #AF00DB\">try<\/span><span style=\"color: #000000\">? <\/span><span style=\"color: #AF00DB\">await<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #795E26\">Entity<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #795E26\">named<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #A31515\">&quot;RKBasicsLoading&quot;<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #795E26\">in<\/span><span style=\"color: #000000\">: realityKitContentBundle) {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">                content.<\/span><span style=\"color: #795E26\">add<\/span><span style=\"color: #000000\">(scene)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">                scene.<\/span><span style=\"color: #001080\">position<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #001080\">y<\/span><span style=\"color: #000000\"> = <\/span><span style=\"color: #098658\">-0.4<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">            }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">        } update: { content <\/span><span style=\"color: #AF00DB\">in<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #000000\">            <\/span><span style=\"color: #008000\">\/\/ 3. Find the Earth and Moon entities and update their visibility based on our state<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">            <\/span><span style=\"color: #AF00DB\">if<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #0000FF\">let<\/span><span style=\"color: #000000\"> earth = content.<\/span><span style=\"color: #001080\">entities<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #001080\">first<\/span><span style=\"color: #000000\">?.<\/span><span style=\"color: #795E26\">findEntity<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #795E26\">named<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #A31515\">&quot;Earth&quot;<\/span><span style=\"color: #000000\">), <\/span><span style=\"color: #0000FF\">let<\/span><span style=\"color: #000000\"> moon = content.<\/span><span style=\"color: #001080\">entities<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #001080\">first<\/span><span style=\"color: #000000\">?.<\/span><span style=\"color: #795E26\">findEntity<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #795E26\">named<\/span><span style=\"color: #000000\">: <\/span><span style=\"color: #A31515\">&quot;Moon&quot;<\/span><span style=\"color: #000000\">) {<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #000000\">                earth.<\/span><span style=\"color: #001080\">isEnabled<\/span><span style=\"color: #000000\"> = showEarth<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">                moon.<\/span><span style=\"color: #001080\">isEnabled<\/span><span style=\"color: #000000\"> = showMoon<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">            }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">        }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">        <\/span><span style=\"color: #008000\">\/\/ 2. SwiftUI toolbar and toggles to modify our state<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">        .<\/span><span style=\"color: #001080\">toolbar<\/span><span style=\"color: #000000\"> {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">            <\/span><span style=\"color: #795E26\">ToolbarItem<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #795E26\">placement<\/span><span style=\"color: #000000\">: .<\/span><span style=\"color: #001080\">bottomOrnament<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #795E26\">content<\/span><span style=\"color: #000000\">: {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">                HStack {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">                    <\/span><span style=\"color: #795E26\">Toggle<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #A31515\">&quot;Show Earth&quot;<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #795E26\">isOn<\/span><span style=\"color: #000000\">: $showEarth)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">                        .<\/span><span style=\"color: #795E26\">toggleStyle<\/span><span style=\"color: #000000\">(.<\/span><span style=\"color: #001080\">button<\/span><span style=\"color: #000000\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">                    <\/span><span style=\"color: #795E26\">Toggle<\/span><span style=\"color: #000000\">(<\/span><span style=\"color: #A31515\">&quot;Show Moon&quot;<\/span><span style=\"color: #000000\">, <\/span><span style=\"color: #795E26\">isOn<\/span><span style=\"color: #000000\">: $showMoon)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">                        .<\/span><span style=\"color: #795E26\">toggleStyle<\/span><span style=\"color: #000000\">(.<\/span><span style=\"color: #001080\">button<\/span><span style=\"color: #000000\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">                }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">            })<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">        }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">    }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #000000\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"has-theme-palette-8-background-color has-background\" id=\"\u2020\">I&#8217;ve seen some cases where other changes to the view cause this closure to run. I&#8217;ve also see cases where using a state variable directly is not enough to trigger update. I suspect those were visionOS bugs that have since been solved.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The update closure will run when any referenced state changes. We can reach into our RealityView content to modify entities or components.<\/p>\n","protected":false},"author":93705089,"featured_media":3119,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_EventAllDay":false,"_EventTimezone":"","_EventStartDate":"","_EventEndDate":"","_EventStartDateUTC":"","_EventEndDateUTC":"","_EventShowMap":false,"_EventShowMapLink":false,"_EventURL":"","_EventCost":"","_EventCostDescription":"","_EventCurrencySymbol":"","_EventCurrencyCode":"","_EventCurrencyPosition":"","_EventDateTimeSeparator":"","_EventTimeRangeSeparator":"","_EventOrganizerID":[],"_EventVenueID":[],"_OrganizerEmail":"","_OrganizerPhone":"","_OrganizerWebsite":"","_VenueAddress":"","_VenueCity":"","_VenueCountry":"","_VenueProvince":"","_VenueState":"","_VenueZip":"","_VenuePhone":"","_VenueURL":"","_VenueStateProvince":"","_VenueLat":"","_VenueLng":"","_VenueShowMap":false,"_VenueShowMapLink":false,"_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2},"_wpas_customize_per_network":false,"jetpack_post_was_ever_published":false},"categories":[1365],"tags":[],"class_list":["post-3117","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-example-code"],"jetpack_publicize_connections":[],"taxonomy_info":{"category":[{"value":1365,"label":"Example Code"}]},"featured_image_src_large":["https:\/\/i0.wp.com\/stepinto.vision\/wp-content\/uploads\/2025\/02\/step-example-049-01.jpeg?fit=1024%2C768&ssl=1",1024,768,true],"author_info":{"display_name":"Joseph Simpson","author_link":"https:\/\/stepinto.vision\/author\/vrhermit\/"},"comment_info":0,"category_info":[{"term_id":1365,"name":"Example Code","slug":"example-code","term_group":0,"term_taxonomy_id":11,"taxonomy":"category","description":"Code snippets and examples of using common APIs throughout visionOS development","parent":0,"count":187,"filter":"raw","cat_ID":1365,"category_count":187,"category_description":"Code snippets and examples of using common APIs throughout visionOS development","cat_name":"Example Code","category_nicename":"example-code","category_parent":0}],"tag_info":false,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/stepinto.vision\/wp-content\/uploads\/2025\/02\/step-example-049-01.jpeg?fit=2732%2C2048&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/stepinto.vision\/wp-json\/wp\/v2\/posts\/3117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stepinto.vision\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stepinto.vision\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stepinto.vision\/wp-json\/wp\/v2\/users\/93705089"}],"replies":[{"embeddable":true,"href":"https:\/\/stepinto.vision\/wp-json\/wp\/v2\/comments?post=3117"}],"version-history":[{"count":8,"href":"https:\/\/stepinto.vision\/wp-json\/wp\/v2\/posts\/3117\/revisions"}],"predecessor-version":[{"id":3128,"href":"https:\/\/stepinto.vision\/wp-json\/wp\/v2\/posts\/3117\/revisions\/3128"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/stepinto.vision\/wp-json\/wp\/v2\/media\/3119"}],"wp:attachment":[{"href":"https:\/\/stepinto.vision\/wp-json\/wp\/v2\/media?parent=3117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stepinto.vision\/wp-json\/wp\/v2\/categories?post=3117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stepinto.vision\/wp-json\/wp\/v2\/tags?post=3117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}