{"id":4778,"date":"2021-12-25T21:54:47","date_gmt":"2021-12-25T13:54:47","guid":{"rendered":"http:\/\/123.57.164.21\/?p=4778"},"modified":"2021-12-25T21:55:49","modified_gmt":"2021-12-25T13:55:49","slug":"swiftui2-0-app%e3%80%81scene%e3%80%81%e6%96%b0%e7%9a%84%e4%bb%a3%e7%a0%81%e7%bb%93%e6%9e%84%ef%bc%88%e4%ba%8c%ef%bc%89","status":"publish","type":"post","link":"https:\/\/92it.top\/?p=4778","title":{"rendered":"SwiftUI2.0 \u2014\u2014 App\u3001Scene\u3001\u65b0\u7684\u4ee3\u7801\u7ed3\u6784\uff08\u4e8c\uff09"},"content":{"rendered":"\n<p>\u8f6c\u8f7d\uff1ahttps:\/\/www.fatbobman.com\/posts\/swiftui2-new-feature-2\/<\/p>\n\n\n\n<p>\u5728&nbsp;<a href=\"https:\/\/www.fatbobman.com\/posts\/swiftui2-new-feature-1\/\">\u4e0a\u7bc7\u6587\u7ae0<\/a>&nbsp;\u4e2d\u6211\u4eec\u7b80\u5355\u4e86\u89e3\u4e86 App\u3001Scene\uff0c\u4ee5\u53ca\u51e0\u4e2a\u5185\u7f6e Scene \u7684\u5e94\u7528\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u7740\u91cd\u63a2\u8ba8\u5728 SwiftUI2.0 \u65b0\u7684\u4ee3\u7801\u7ed3\u6784\u4e0b\u5982\u679c\u66f4\u9ad8\u6548\u7684\u7ec4\u7ec7 Data Flow\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u65b0\u7279\u6027<\/h5>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p><strong>@AppStorage<\/strong><\/p>\n\n\n\n<p>AppStorage \u662f\u82f9\u679c\u5b98\u65b9\u63d0\u4f9b\u7684\u7528\u4e8e\u64cd\u4f5c UserDefault \u7684\u5c5e\u6027\u5305\u88c5\u5668\u3002\u8fd9\u4e2a\u529f\u80fd\u5728 Swift \u63d0\u4f9b\u4e86 propertyWrapper \u7279\u6027\u540e\uff0c\u5df2\u7ecf\u6709\u4f17\u591a\u7684\u5f00\u53d1\u8005\u7f16\u5199\u4e86\u7c7b\u4f3c\u7684\u4ee3\u7801\u3002\u529f\u80fd\u4e0a\u6ca1\u6709\u4efb\u4f55\u7279\u522b\u4e4b\u5904\uff0c\u4e0d\u8fc7\u540d\u79f0\u5bf9\u5e94\u4e86\u65b0\u7684 App \u534f\u8bae\uff0c\u8ba9\u4eba\u66f4\u5bb9\u6613\u4e86\u89e3\u5176\u53ef\u9002\u7528\u7684\u5468\u671f\u3002<\/p>\n\n\n\n<ul><li>\u6570\u636e\u53ef\u6301\u4e45\u5316\uff0capp \u9000\u51fa\u540e\u6570\u636e\u4ecd\u4fdd\u7559<\/li><li>\u4ec5\u5305\u88c5\u4e86 UserDefault\uff0c\u6570\u636e\u53ef\u4ee5 UserDefault \u6b63\u5e38\u8bfb\u53d6<\/li><li>\u53ef\u4fdd\u5b58\u7684\u6570\u636e\u7c7b\u578b\u540c UserDefault\uff0c\u4e0d\u9002\u5408\u4fdd\u5b58\u590d\u6742\u7c7b\u578b\u6570\u636e<\/li><li>\u5728 app \u7684\u4efb\u610f View \u5c42\u7ea7\u90fd\u53ef\u9002\u7528\uff0c\u4e0d\u8fc7\u5728 app \u5c42\u4f7f\u7528\u5e76\u4e0d\u8d77\u4f5c\u7528\uff08\u4e0d\u62a5\u9519\uff09<\/li><\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">@main\nstruct AppStorageTest: App {\n    \/\/\u4e0d\u62a5\u9519\uff0c\u4e0d\u8fc7\u4e0d\u8d77\u4f5c\u7528\n    \/\/@AppStorage(\"count\") var count = 0\n    var body: some Scene {\n        WindowGroup {\n            RootView()\n            CountView()\n        }\n    }\n}\n\nstruct RootView: View {\n    @AppStorage(\"count\") var count = 0\n    var body: some View {\n        List{\n            Button(\"+1\"){\n                count += 1\n            }\n        }\n    }\n}\n\nstruct CountView:View{\n    @AppStorage(\"count\") var count = 0\n    var body: some View{\n        Text(\"Count:\\(count)\")\n    }\n}\n<\/pre>\n\n\n\n<p><strong>@SceneStorage<\/strong><\/p>\n\n\n\n<p>\u4f7f\u7528\u65b9\u6cd5\u540c@AppStorage \u5341\u5206\u7c7b\u4f3c\uff0c\u4e0d\u8fc7\u5176\u4f5c\u7528\u57df\u4ec5\u9650\u4e8e\u5f53\u524d Scene\u3002<\/p>\n\n\n\n<ul><li>\u6570\u636e\u4f5c\u7528\u57df\u4ec5\u9650\u4e8e Scene \u4e2d<\/li><li>\u751f\u547d\u5468\u671f\u540c Scene \u4e00\u81f4\uff0c\u5f53\u524d\u5728 PadOS \u4e0b\uff0c\u5982\u679c\u5f3a\u5236\u9000\u51fa\u4e00\u4e2a\u4e24\u5206\u5c4f\u663e\u793a\u7684 app, \u7cfb\u7edf\u5728\u4e0b\u6b21\u6253\u5f00 app \u65f6\u6709\u65f6\u4f1a\u4fdd\u7559\u4e0a\u6b21\u7684 Scene \u4fe1\u606f\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u5982\u679c\u5355\u72ec\u9000\u51fa\u4e00\u4e2a Scene\uff0c\u6570\u636e\u5219\u5931\u6548<\/li><li>\u652f\u6301\u7684\u7c7b\u578b\u57fa\u672c\u7b49\u540c\u4e8e@AppStorage\uff0c\u9002\u5408\u4fdd\u5b58\u8f7b\u91cf\u6570\u636e<\/li><li>\u6bd4\u8f83\u9002\u5408\u4fdd\u5b58\u57fa\u4e8e Scene \u7684\u7279\u8d28\u4fe1\u606f\uff0c\u6bd4\u5982 TabView \u7684\u9009\u62e9\uff0c\u72ec\u7acb\u5e03\u5c40\u7b49\u6570\u636e<\/li><\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">@main\nstruct NewAllApp: App {\n    var body: some Scene {\n        WindowGroup{\n            ContentView1()\n        }\n    }\n}\n\nstruct ContentView:View{\n    @SceneStorage(\"tabSeleted\") var selection = 2\n    var body:some View{\n        TabView(selection:$selection){\n            Text(\"1\").tabItem { Text(\"1\") }.tag(1)\n            Text(\"2\").tabItem { Text(\"2\") }.tag(2)\n            Text(\"3\").tabItem { Text(\"3\") }.tag(3)\n        }\n    }\n}\n<\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2021\/12\/image-259-1024x631.png\" alt=\"\" class=\"wp-image-4779\" width=\"659\" height=\"405\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2021\/12\/image-259-1024x631.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2021\/12\/image-259-300x185.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2021\/12\/image-259-768x473.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2021\/12\/image-259-830x511.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2021\/12\/image-259-230x142.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2021\/12\/image-259-350x216.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2021\/12\/image-259-480x296.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2021\/12\/image-259.png 1312w\" sizes=\"(max-width: 659px) 100vw, 659px\" \/><\/figure><\/div>\n\n\n\n<p>\u4e0a\u8ff0\u4ee3\u7801\u5728 PadOS \u4e0b\u8fd0\u884c\u6b63\u5e38\uff0c\u4e0d\u8fc7\u5728 macOS \u4e0b\u7a0b\u5e8f\u4f1a\u62a5\u9519\u3002\u4f30\u8ba1\u5e94\u8be5\u662f bug<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Data Flow<\/h5>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<ul><li><strong>\u624b\u6bb5<\/strong><\/li><\/ul>\n\n\n\n<p>\u82f9\u679c\u5728 SwiftUI2.0 \u4e2d\u6dfb\u52a0\u4e86@AppStorage @SceneStorage @StateObject \u7b49\u65b0\u7684\u5c5e\u6027\u5305\u88c5\u5668\uff0c\u6211\u6839\u636e\u81ea\u5df1\u7684\u7406\u89e3\u5bf9\u76ee\u524d SwiftUI \u63d0\u4f9b\u7684\u90e8\u5206\u5c5e\u6027\u5305\u88c5\u5668\u505a\u4e86\u5982\u4e0b\u603b\u7ed3\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2021\/12\/image-260-1024x574.png\" alt=\"\" class=\"wp-image-4780\" width=\"590\" height=\"330\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2021\/12\/image-260-1024x574.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2021\/12\/image-260-300x168.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2021\/12\/image-260-768x430.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2021\/12\/image-260-830x465.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2021\/12\/image-260-230x129.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2021\/12\/image-260-350x196.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2021\/12\/image-260-480x269.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2021\/12\/image-260.png 1192w\" sizes=\"(max-width: 590px) 100vw, 590px\" \/><\/figure><\/div>\n\n\n\n<p>\u7ecf\u8fc7\u6b64\u6b21\u5347\u7ea7\u540e\uff0cSwiftUI \u5df2\u7ecf\u5927\u5927\u7684\u5b8c\u5584\u4e86\u5404\u4e2a\u5c42\u7ea7\u6570\u636e\u7684\u751f\u547d\u5468\u671f\u7ba1\u7406\uff0c\u5bf9\u4e0d\u540c\u7684\u7c7b\u578b\u3001\u4e0d\u540c\u7684\u573a\u5408\u3001\u4e0d\u540c\u7684\u7528\u9014\u90fd\u63d0\u4f9b\u4e86\u89e3\u51b3\u65b9\u6848\uff0c\u4e3a\u7f16\u5199\u7b26\u5408 SwiftUI \u7684 Data Flow \u63d0\u4f9b\u4e86\u4fbf\u5229\uff0c\u6211\u4eec\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u8981\u9009\u62e9\u9002\u5408\u7684 Source of truth \u624b\u6bb5\u3002<\/p>\n\n\n\n<ul><li><strong>\u53d8\u5316<\/strong><\/li><\/ul>\n\n\n\n<p>\u5728 SwiftUI1.0 \u4e2d\uff0c\u6211\u4eec\u901a\u5e38\u4f1a\u5728 AppDelegate \u4e2d\u521b\u5efa\u9700\u8981\u751f\u547d\u5468\u671f\u4e0e app \u4e00\u81f4\u7684\u6570\u636e\uff08\u6bd4\u5982 CoreData \u7684 Container\uff09\uff0c\u5728 SceneDelegate \u4e2d\u521b\u5efa Store \u4e4b\u7c7b\u7684\u6570\u636e\u6e90\uff0c\u5e76\u901a\u8fc7\u3002environmentObject \u6ce8\u5165\u3002\u4e0d\u8fc7\u968f\u7740 SwiftUI2.0 \u5728\u7a0b\u5e8f\u5165\u53e3\u65b9\u9762\u7684\u53d8\u5316\uff0c\u4ee5\u53ca\u91c7\u53d6\u7684\u5168\u65b0 Delegate \u54cd\u5e94\u65b9\u5f0f\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u66f4\u7b80\u6d01\u3001\u6e05\u6670\u7684\u4ee3\u7801\u5b8c\u6210\u4e0a\u8ff0\u5de5\u4f5c\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">@main\nstruct NewAllApp: App {\n    @StateObject var store = Store()\n    var body: some Scene {\n        WindowGroup{\n            ContentView()\n                .environmentObject(store)\n        }\n    }\n}\n\nclass Store:ObservableObject{\n    @Published var count = 0\n}<\/pre>\n\n\n\n<p>\u4e0a\u8ff0\u4f8b\u5b50\u4e2d\uff0c\u5c06<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">@StateObject var store = Store()\n<\/pre>\n\n\n\n<p>\u6362\u6210<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">let store = Store()\n<\/pre>\n\n\n\n<p>\u76ee\u524d\u6765\u8bf4\u662f\u4e00\u6837\u7684\u3002<\/p>\n\n\n\n<p><em>\u867d\u7136\u76ee\u524d SceneBuilder\u3001CommandBuilder \u5bf9 Dynamic update \u548c\u903b\u8f91\u5224\u65ad\u5c1a\u4e0d\u652f\u6301\uff0c\u6211\u76f8\u4fe1\u5e94\u8be5\u5728\u4e0d\u4e45\u7684\u5c06\u6765\uff0c\u6216\u8bb8\u6211\u4eec\u5c31\u53ef\u4ee5\u4f7f\u7528\u7c7b\u4f3c\u4e0b\u9762\u7684\u4ee3\u7801\u6765\u5b8c\u6210\u5f88\u591a\u6709\u8da3\u7684\u5de5\u4f5c\u4e86\uff0c**\u5f53\u524d\u4ee3\u7801\u65e0\u6cd5\u6267\u884c<\/em>**<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">@main\nstruct NewAllApp: App {\n    @StateObject var store = Store()\n    @SceneBuilder var body: some Scene {\n        \/\/@SceneBuilder \u76ee\u524d\u4e0d\u652f\u6301\u5224\u65ad\uff0c\u4e0d\u8fc7\u5c06\u6765\u5e94\u8be5\u4f1a\u52a0\u4e0a\n        if store.scene == 0 {\n        WindowGroup{\n            ContentView1()\n                .environmentObject(store)\n        }\n        .onChange(of: store.number){ value in\n            print(value)\n        }\n        .commands{\n            CommandMenu(\"DynamicButton\"){\n                \/\/\u76ee\u524d\u65e0\u6cd5\u52a8\u6001\u5207\u6362\u5185\u5bb9\uff0c\u6000\u7591\u662f bug\uff0c\u5df2\u53cd\u9988\n                switch store.number{\n                case 0:\n                    Button(\"0\"){}\n                case 1:\n                    Button(\"1\"){}\n                default:\n                    Button(\"other\"){}\n                }\n            }\n        }\n        else {\n         DocumentGroup(newDocment:TextFile()){ file in\n              TextEditorView(document:file.$document)\n         }\n        }\n        \n        Settings{\n            VStack{\n               \/\/\u53ef\u6b63\u5e38\u53d8\u6362\n                Text(\"\\(store.number)\")\n                    .padding(.all, 50)\n            }\n        }\n\n    }\n}\n\nstruct ContentView1:View{\n    @EnvironmentObject var store:Store\n    var body:some View{\n        VStack{\n        Picker(\"select\",selection:$store.number){\n            Text(\"0\").tag(0)\n            Text(\"1\").tag(1)\n            Text(\"2\").tag(2)\n        }\n        .pickerStyle(SegmentedPickerStyle())\n        .padding()\n        }\n    }\n}\n\nclass Store:ObservableObject{\n    @Published var number = 0\n    @Published var scene = 0\n}<\/pre>\n\n\n\n<ul><li><strong>\u8de8\u5e73\u53f0\u4ee3\u7801<\/strong><\/li><\/ul>\n\n\n\n<p>\u5728&nbsp;<a href=\"https:\/\/www.fatbobman.com\/posts\/swiftui2-new-feature-1\/\">\u4e0a\u7bc7\u6587\u7ae0<\/a>&nbsp;\u6211\u4eec\u4ecb\u7ecd\u4e86\u65b0\u7684@UIApplicationDelegateAdaptor \u7684\u4f7f\u7528\u65b9\u6cd5\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u76f4\u63a5\u521b\u5efa\u4e00\u4e2a\u652f\u6301 Delegate \u7684 store\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import SwiftUI\n\nclass Store:NSObject,ObservableObject{\n    @Published var count = 0\n}\n\n#if os(iOS)\nextension Store:UIApplicationDelegate{\n    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {\n        print(\"launch\")\n        return true\n    }\n}\n#endif\n\n@main\nstruct AllInOneApp: App {\n    #if os(iOS)\n    @UIApplicationDelegateAdaptor(Store.self) var store\n    #else\n    @StateObject var store = Store()\n    #endif\n    \n    @Environment(\\.scenePhase) var phase\n\n    @SceneBuilder var body: some Scene {\n            WindowGroup {\n                RootView()\n                    .environmentObject(store)\n            }\n            .onChange(of: phase){phase in\n                switch phase{\n                case .active:\n                    print(\"active\")\n                case .inactive:\n                    print(\"inactive\")\n                case .background:\n                    print(\"background\")\n                @unknown default:\n                    print(\"for future\")\n                }\n\n            }\n      \n        #if os(macOS)\n        Settings{\n            Text(\"\u504f\u597d\u8bbe\u7f6e\").padding(.all, 50)\n        }\n        #endif\n    }\n}\n<\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">\u603b\u7ed3<\/h5>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u5728&nbsp;<a href=\"https:\/\/www.fatbobman.com\/posts\/observableObject-study\/\">ObservableObject \u7814\u7a76\u2014\u2014\u60f3\u8bf4\u7231\u4f60\u4e0d\u5bb9\u6613<\/a>&nbsp;\u4e2d\uff0c\u6211\u4eec\u63a2\u8ba8\u8fc7 SwiftUI \u66f4\u503e\u5411\u4e8e\u6211\u4eec\u4e0d\u8981\u521b\u5efa\u4e00\u4e2a\u6c89\u91cd\u7684 Singel source of truth, \u800c\u662f\u5c06\u6bcf\u4e2a\u529f\u80fd\u6a21\u5757\u4f5c\u4e3a\u72ec\u7acb\u7684\u72b6\u6001\u673a\uff08\u4e00\u8d77\u7ec4\u5408\u6210\u4e00\u4e2a\u5927\u7684\u72b6\u6001 app\uff09\uff0c\u4f7f\u7528\u80fd\u591f\u5bf9\u751f\u547d\u5468\u671f\u548c\u4f5c\u7528\u57df\u66f4\u7cbe\u786e\u53ef\u63a7\u7684\u624b\u6bb5\u521b\u5efa\u533a\u57df\u6027\u7684 source of truth\u3002<\/p>\n\n\n\n<p>\u4ece SwiftUI \u7b2c\u4e00\u4e2a\u7248\u672c\u5347\u7ea7\u7684\u5185\u5bb9\u6765\u770b\uff0c\u76ee\u524d SwiftUI \u4ecd\u662f\u8fd9\u6837\u7684\u601d\u8def\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8f6c\u8f7d\uff1ahttps:\/\/www.fatbobman.com\/posts\/swiftui2-new-feature [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,5],"tags":[],"_links":{"self":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/4778"}],"collection":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4778"}],"version-history":[{"count":2,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/4778\/revisions"}],"predecessor-version":[{"id":4782,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/4778\/revisions\/4782"}],"wp:attachment":[{"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4778"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4778"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4778"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}