{"provider_name":"Hatena Blog","categories":["iOS","Swift","Xcode"],"title":"Swift\u3067@State\u3092\u4f7f\u7528\u3059\u308b\u4f8b","type":"rich","height":"190","blog_title":"Web\u958b\u767a\u306b\u304a\u3051\u308b\u77e5\u898b\u5171\u6709\u7cfb\u30da\u30fc\u30b8","provider_url":"https://hatena.blog","author_name":"tomotomo1129","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjob-info.hateblo.jp%2Fentry%2F2024%2F11%2F23%2F212054\" title=\"Swift\u3067@State\u3092\u4f7f\u7528\u3059\u308b\u4f8b - Web\u958b\u767a\u306b\u304a\u3051\u308b\u77e5\u898b\u5171\u6709\u7cfb\u30da\u30fc\u30b8\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"Swift\u3067@State\u3092\u4f7f\u7528\u3059\u308b\u4f8b Swift\u3067@State\u3092\u4f7f\u7528\u3059\u308b\u4f8b @State\u306fSwiftUI\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u30e9\u30c3\u30d1\u30fc\u3067\u3001\u30d3\u30e5\u30fc\u306e\u72b6\u614b\u3092\u4fdd\u6301\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002 @State\u3092\u4f7f\u3046\u3068\u3001\u30d3\u30e5\u30fc\u304c\u66f4\u65b0\u3055\u308c\u308b\u305f\u3073\u306b\u305d\u306e\u72b6\u614b\u304c\u53cd\u6620\u3055\u308c\u3001UI\u304c\u518d\u63cf\u753b\u3055\u308c\u307e\u3059\u3002 \u4ee5\u4e0b\u306f@State\u3092\u4f7f\u7528\u3057\u305f\u7c21\u5358\u306a\u4f8b\u3067\u3059\u3002 import SwiftUI struct ContentView: View { // @State\u3092\u4f7f\u3063\u3066\u30ab\u30a6\u30f3\u30c8\u5909\u6570\u3092\u4fdd\u6301 @State private var count = 0 var body: some View { VStack { // \u30ab\u30a6\u30f3\u30c8\u306e\u5024\u3092\u8868\u793a Text(\"\u30ab\u30a6\u30f3\u30c8\u2026","url":"https://job-info.hateblo.jp/entry/2024/11/23/212054","width":"100%","blog_url":"https://job-info.hateblo.jp/","version":"1.0","author_url":"https://blog.hatena.ne.jp/tomotomo1129/","image_url":null,"published":"2024-11-23 21:20:55"}