{"id":867,"date":"2020-08-16T12:53:45","date_gmt":"2020-08-16T04:53:45","guid":{"rendered":"http:\/\/123.57.164.21\/?p=867"},"modified":"2020-08-16T12:53:45","modified_gmt":"2020-08-16T04:53:45","slug":"swiftui-custom-progressview","status":"publish","type":"post","link":"https:\/\/92it.top\/?p=867","title":{"rendered":"SwiftUI Custom ProgressView"},"content":{"rendered":"\n<p>\u8fd9\u51e0\u5929\u4e00\u76f4\u5728\u770bWWDC20\u4e2d\u4e0eSwiftUI\u76f8\u5173\u7684\u89c6\u9891\uff0c\u5728\u89c2\u770b\u8fd9\u4e2a\u89c6\u9891<a rel=\"noreferrer noopener\" href=\"https:\/\/links.jianshu.com\/go?to=https%3A%2F%2Fdeveloper.apple.com%2Fvideos%2Fplay%2Fwwdc2020%2F10643%2F\" target=\"_blank\">Build a SwiftUI view in Swift Playgrounds<\/a>\u7684\u65f6\u5019\uff0c\u89c9\u5f97\u8fd9\u4e2aProgressView\u633a\u597d\u73a9\u7684\uff0c\u56e0\u6b64\u51b3\u5b9a\u5bf9\u5176\u8fdb\u884c\u4e00\u6ce2\u6a21\u4eff\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"587\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2020\/08\/image-99-1024x587.png\" alt=\"\" class=\"wp-image-869\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-99-1024x587.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-99-300x172.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-99-768x440.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-99-830x476.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-99-230x132.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-99-350x201.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-99-480x275.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-99.png 1284w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>\u6700\u7ec8\u6548\u679c\u5982\u4e0b\u56fe\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\/2020\/08\/1914952-5f52524471dd4e5e-min-1.gif\" alt=\"\" class=\"wp-image-871\" width=\"512\" height=\"231\"\/><\/figure><\/div>\n\n\n\n<p>\u5728\u6697\u9ed1\u6a21\u5f0f\u4e0b\uff0c\u5982\u4e0b\u56fe\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"464\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2020\/08\/image-100-1024x464.png\" alt=\"\" class=\"wp-image-872\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-100-1024x464.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-100-300x136.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-100-768x348.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-100-830x376.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-100-230x104.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-100-350x159.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-100-480x217.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-100.png 1294w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>\u603b\u8d77\u6765\u8bf4\uff0c\u6548\u679c\u8fd8\u662f\u53ef\u4ee5\u7684\uff0c\u6211\u4e4b\u6240\u4ee5\u89c9\u5f97SwiftUI\u5f88\u6709\u610f\u601d\uff0c\u5c31\u662f\u56e0\u4e3a\u5b83\u80fd\u591f\u8ba9\u6211\u4eec\u7684\u60f3\u6cd5\u7acb\u523b\u53d8\u73b0\uff0c\u5728SwiftUI\u4e2d\u5b9e\u73b0\u5404\u79cd\u6548\u679c\u6216\u8005\u5404\u4e2a\u9875\u9762\u5b9e\u5728\u662f\u592a\u7b80\u5355\u4e86\u3002\u5f53\u7136\uff0c\u524d\u63d0\u662f\u5bf9SwiftUI\u5fc5\u987b\u6709\u6df1\u5165\u7684\u4e86\u89e3\u624d\u884c\uff0c\u8fd9\u4e00\u70b9\u5e76\u4e0d\u50cf\u5916\u884c\u8ba4\u4e3a\u7684\u90a3\u6837\uff0c\u968f\u4fbf\u62d6\u62fd\u51e0\u4e2a\u63a7\u4ef6\u5c31\u662f\u4e00\u4e2aAPP\u4e86\u3002<\/p>\n\n\n\n<p>\u4ee3\u7801\u975e\u5e38\u7b80\u5355\uff0c\u4f46\u6211\u66f4\u60f3\u8bb2\u89e3\u4e00\u4e0b\u5982\u4f55\u5b9e\u73b0\u8fd9\u4e2a\u529f\u80fd\u7684\uff1f<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">\u4efb\u52a1\u5206\u89e3<\/h4>\n\n\n\n<p>\u6211\u4eec\u76f4\u63a5\u5ffd\u7565\u5e95\u90e8\u7684\u6ed1\u6761\u548c\u6309\u94ae\uff0c\u8fd9\u4e0d\u662f\u672c\u7bc7\u6587\u7ae0\u7684\u91cd\u70b9\u3002\u4ece\u6700\u9ad8\u5c42\u6b21\u4e0a\uff0c\u6211\u4eec\u53ef\u4ee5\u628a\u8fd9\u4e2a<code>MyProgressView<\/code>\u62c6\u5206\u4e3a3\u90e8\u5206\uff1a<\/p>\n\n\n\n<ul><li>\u80cc\u666f\u8fdb\u5ea6View<\/li><li>\u5f53\u524d\u8fdb\u5ea6View<\/li><li>\u8fdb\u5ea6\u6587\u672cView<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"453\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2020\/08\/image-101-1024x453.png\" alt=\"\" class=\"wp-image-873\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-101-1024x453.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-101-300x133.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-101-768x340.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-101-830x367.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-101-230x102.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-101-350x155.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-101-480x212.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-101.png 1302w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">\u91cd\u70b9<\/h4>\n\n\n\n<p>\u7ecf\u8fc7\u4efb\u52a1\u62c6\u5206\u540e\uff0c\u6211\u4eec\u53d1\u73b0\uff0c\u5f53\u524d\u6700\u6709\u96be\u5ea6\u7684\u4efb\u52a1\u662f\u5982\u4f55\u628a\u4e00\u4e2a\u5706\u5f62\u5207\u5272\u6389\u4e00\u90e8\u5206\u3002\u5148\u4ece\u7b80\u5355\u7684\u4efb\u52a1\u505a\u8d77\uff0c\u6211\u4eec\u5148\u753b\u4e00\u4e2a\u5706\u5f62\uff1a<\/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=\"\"><\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"461\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2020\/08\/image-102-1024x461.png\" alt=\"\" class=\"wp-image-874\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-102-1024x461.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-102-300x135.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-102-768x346.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-102-830x374.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-102-230x104.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-102-350x158.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-102-480x216.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-102.png 1310w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>\u753b\u5706\u592a\u7b80\u5355\u4e86\uff0c\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u9700\u8981\u5f04\u51fa\u4e00\u4e2a\u7f3a\u53e3\u51fa\u6765\uff0c\u6211\u4eec\u79f0\u4e4b\u4e3a<code>sliceSize<\/code>, \u8fd9\u4e2a<code>sliceSize<\/code>\u662f\u53ef\u914d\u7f6e\u7684\uff0c\u4e5f\u5c31\u662f\u8bf4\u6211\u4eec\u53ef\u4ee5\u968f\u610f\u8bbe\u7f6e\u3002\u5e78\u8fd0\u7684\u662f\uff0c\u7cfb\u7edf\u63d0\u4f9b\u4e86\u4e00\u4e2a\u51fd\u6570\uff1a<\/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=\"\">@inlinable public func trim(from startFraction: CGFloat = 0, to endFraction: CGFloat = 1) -> some Shape<\/pre>\n\n\n\n<p>\u5728SwiftUI\u4e2d\uff0c\u6240\u6709\u5b9e\u73b0Shape\u534f\u8bae\u7684\u5bf9\u8c61\u90fd\u53ef\u4ee5\u8c03\u7528\u8fd9\u4e2a\u65b9\u6cd5\uff0c\u7528\u8d77\u6765\u4e5f\u5f88\u7b80\u5355,\u5927\u5bb6\u53ea\u9700\u8981\u770b\u4e0b\u56fe\u8fd9\u4e2a\u793a\u4f8b\u5c31\u80fd\u660e\u767d\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"462\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2020\/08\/image-103-1024x462.png\" alt=\"\" class=\"wp-image-875\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-103-1024x462.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-103-300x135.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-103-768x347.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-103-830x375.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-103-230x104.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-103-350x158.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-103-480x217.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-103.png 1294w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u622a\u53d6\u56fe\u5f62\u7684\u987a\u5e8f\u662f\u987a\u65f6\u9488\u7684\uff0c\u4ece\u6c34\u5e73\u65b9\u5411\u7684\u53f3\u8fb9\u5f00\u59cb\u3002\u90a3\u4e48\u95ee\u9898\u6765\u4e86\uff0c\u5047\u8bbe\u6211\u4eec\u9700\u8981\u7684<code>sliceSize<\/code>\u7b49\u4e8e0.3,\u4e5f\u5c31\u662f\uff1a<\/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=\"\">.trim(from: 0, to: 1 - CGFloat(self.sliceSize))\n<\/pre>\n\n\n\n<p>\u8fd0\u884c\u7a0b\u5e8f\u540e\uff0c\u6211\u4eec\u9700\u8981\u4e86\u7b2c\u4e00\u4e2a\u6311\u6218\uff1a<br><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"461\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2020\/08\/image-104-1024x461.png\" alt=\"\" class=\"wp-image-876\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-104-1024x461.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-104-300x135.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-104-768x346.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-104-830x374.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-104-230x104.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-104-350x158.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-104-480x216.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-104.png 1296w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>\u901a\u8fc7\u4e0a\u56fe\uff0c\u6211\u4eec\u53d1\u73b0\uff0c\u9700\u8981\u65cb\u8f6c\u56fe\u5f62\uff0c\u90a3\u4e48\u6211\u4eec\u5c31\u81ea\u7136\u60f3\u5230\u9700\u8981\u8ba1\u7b97\u65cb\u8f6c\u7684\u89d2\u5ea6\uff0c\u4e3a\u4e86\u8ba9\u5927\u5bb6\u66f4\u5bb9\u6613\u7406\u89e3\u8fd9\u4e9b\u5185\u5bb9\uff0c\u6211\u90fd\u753b\u4e86\u793a\u610f\u56fe\uff0c\u5728\u771f\u5b9e\u7684\u5f00\u53d1\u4e2d\uff0c\u8fd9\u4e9b\u793a\u610f\u56fe\u5176\u5b9e\u662f\u5927\u5bb6\u5fc3\u91cc\u8ba1\u7b97\u7684\u4e00\u4e2a\u8fc7\u7a0b\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"655\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2020\/08\/image-105-1024x655.png\" alt=\"\" class=\"wp-image-877\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-105-1024x655.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-105-300x192.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-105-768x491.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-105-830x531.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-105-230x147.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-105-350x224.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-105-480x307.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2020\/08\/image-105.png 1210w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>\u4ed4\u7ec6\u5206\u6790\u4e0a\u56fe\uff0c\u5b9e\u9645\u4e0a\u662f\u6a59\u8272\u5230\u7eff\u8272\u7684\u65cb\u8f6c\uff0c\u4e5f\u5c31\u662f\u5411\u91cfFC\u5230FH\u7684\u65cb\u8f6c\uff0c\u8fd9\u4e00\u70b9\u5927\u5bb6\u80fd\u660e\u767d\u5417\uff1f \u4ee3\u7801\u5982\u4e0b\uff1a<\/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=\"\">var rotateAngle: Angle {\n    .degrees(90 + sliceSize * 360 * 0.5)\n}\n<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u6e10\u53d8<\/h4>\n\n\n\n<p>\u7406\u89e3\u4e0a\u8fb9\u7684\u65cb\u8f6c\u540e\uff0c\u6211\u4eec\u5c31\u53ea\u5269\u6700\u540e\u4e00\u6b65\u4e86\uff0c\u7ed9\u8fdb\u5ea6\u6761\u8bbe\u7f6e\u6e10\u53d8\u7684\u989c\u8272\u3002\u6211\u4eec\u5728\u8fd9\u91cc\u9009\u62e9\u4e86AngularGradient\uff0c\u4e5f\u5c31\u662f\u89d2\u5ea6\u6e10\u53d8\uff1a<\/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=\"\">var strokeGradient: AngularGradient {\n    AngularGradient(gradient: gradient, center: \/*@START_MENU_TOKEN@*\/ .center\/*@END_MENU_TOKEN@*\/, angle: .degrees(-10))\n}<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u6838\u5fc3\u4ee3\u7801<\/h4>\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=\"\">public struct MyProgressView: View {\n    let gradient = Gradient(colors: [.green, .blue])\n    let sliceSize = 0.45\n    let progress: Double\n\n    private let percentageFormatter: NumberFormatter = {\n        let numberFormatter = NumberFormatter()\n        numberFormatter.numberStyle = .percent\n        return numberFormatter\n    }()\n\n    var strokeGradient: AngularGradient {\n        AngularGradient(gradient: gradient, center: \/*@START_MENU_TOKEN@*\/ .center\/*@END_MENU_TOKEN@*\/, angle: .degrees(-10))\n    }\n\n    var rotateAngle: Angle {\n        .degrees(90 + sliceSize * 360 * 0.5)\n    }\n\n    init(_ progress: Double = 0.3) {\n        self.progress = progress\n    }\n\n    private func strokeStyle(_ proxy: GeometryProxy) -> StrokeStyle {\n        StrokeStyle(lineWidth: 0.1 * min(proxy.size.width, proxy.size.height),\n                    lineCap: .round)\n    }\n\n    public var body: some View {\n        GeometryReader { proxy in\n            ZStack {\n                Group {\n                    Circle()\n                        .trim(from: 0, to: 1 - CGFloat(self.sliceSize))\n                        .stroke(self.strokeGradient,\n                                style: self.strokeStyle(proxy))\n                        .padding(.all, \/*@START_MENU_TOKEN@*\/10\/*@END_MENU_TOKEN@*\/)\n\n                    Circle()\n                        .trim(from: 0, to: CGFloat(self.progress * (1 - self.sliceSize)))\n                        .stroke(Color.purple,\n                                style: self.strokeStyle(proxy))\n                        .padding(.all, \/*@START_MENU_TOKEN@*\/10\/*@END_MENU_TOKEN@*\/)\n                }\n                .rotationEffect(self.rotateAngle, anchor: \/*@START_MENU_TOKEN@*\/ .center\/*@END_MENU_TOKEN@*\/)\n                .offset(x: 0, y: 0.1 * min(proxy.size.width, proxy.size.height))\n\n                Text(\"\\(self.percentageFormatter.string(from: NSNumber(value: self.progress))!)\")\n                    .font(.largeTitle)\n                    .bold()\n            }\n        }\n    }\n}&lt;em>&lt;\/em><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u51e0\u5929\u4e00\u76f4\u5728\u770bWWDC20\u4e2d\u4e0eSwiftUI\u76f8\u5173\u7684\u89c6\u9891\uff0c\u5728\u89c2\u770b\u8fd9\u4e2a\u89c6\u9891Build a SwiftUI view [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/867"}],"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=867"}],"version-history":[{"count":2,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/867\/revisions"}],"predecessor-version":[{"id":878,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/867\/revisions\/878"}],"wp:attachment":[{"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}