<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Short Read » MszPro・株式会社Smartソフト</title>
	<atom:link href="https://mszpro.com/category/short-read/feed" rel="self" type="application/rss+xml" />
	<link>https://mszpro.com</link>
	<description>iOS VisionOS SwiftUI Programming Blog. Dream it, Chase it, Code it.</description>
	<lastBuildDate>Mon, 16 Dec 2024 12:35:46 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>

<image>
	<url>https://static-assets.mszpro.com/2024/12/cropped-Unknown-32x32.webp</url>
	<title>Short Read » MszPro・株式会社Smartソフト</title>
	<link>https://mszpro.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>SwiftUI .tabItem deprecated in iOS 18.1 -&gt; replace it with new Tab</title>
		<link>https://mszpro.com/swiftui-tabitem-deprecated</link>
		
		<dc:creator><![CDATA[msz]]></dc:creator>
		<pubDate>Mon, 16 Dec 2024 08:36:02 +0000</pubDate>
				<category><![CDATA[API Deprecation]]></category>
		<category><![CDATA[Short Read]]></category>
		<category><![CDATA[SwiftUI]]></category>
		<guid isPermaLink="false">https://mszpro.com/?p=467</guid>

					<description><![CDATA[<p>In the newest Xcode, you might see a deprecation warning if you try to use .tabItem view modifier. 💡 &#8216;tabItem&#8217; will be deprecated in a future version of iOS: Use Tab (title:image:value:content:) and related initializers instead As shown on the Apple Developer documentation: You can easily fix this by using the new Tab view: You [&#8230;]</p>
<p>The post <a href="https://mszpro.com/swiftui-tabitem-deprecated">SwiftUI .tabItem deprecated in iOS 18.1 -> replace it with new Tab</a> first appeared on <a href="https://mszpro.com">MszPro・株式会社Smartソフト</a>.</p>]]></description>
										<content:encoded><![CDATA[<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="521" src="https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10-1024x521.webp" alt="" class="wp-image-468" srcset="https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10-300x153.webp 300w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10-1024x521.webp 1024w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10-768x391.webp 768w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10-1536x782.webp 1536w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10.webp 1984w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>In the newest Xcode, you might see a deprecation warning if you try to use <code>.tabItem</code> view modifier.</p>



<p>💡</p>



<p>&#8216;tabItem&#8217; will be deprecated in a future version of iOS: Use Tab (title:image:value:content:) and related initializers instead</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="367" src="https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10.52.53-AM-1024x367.webp" alt="" class="wp-image-469" srcset="https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10.52.53-AM-300x107.webp 300w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10.52.53-AM-1024x367.webp 1024w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10.52.53-AM-768x275.webp 768w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10.52.53-AM-1536x550.webp 1536w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10.52.53-AM.webp 1600w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>As shown on the Apple Developer documentation:</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="521" src="https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10.53.19-AM-1024x521.webp" alt="" class="wp-image-470" srcset="https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10.53.19-AM-300x153.webp 300w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10.53.19-AM-1024x521.webp 1024w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10.53.19-AM-768x391.webp 768w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10.53.19-AM-1536x782.webp 1536w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10.53.19-AM.webp 1984w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>You can easily fix this by using the new <code>Tab</code> view:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="381" src="https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10.55.52-AM.webp" alt="" class="wp-image-471" srcset="https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10.55.52-AM-300x112.webp 300w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10.55.52-AM.webp 1024w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10.55.52-AM-768x286.webp 768w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10.55.52-AM-1536x572.webp 1536w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10.55.52-AM.webp 1600w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>You can also easily add a badge (that shows a number or a character text), and use the <code>value</code> parameter to control which tab is currently activated:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="796" src="https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10.57.27-AM.webp" alt="" class="wp-image-472" srcset="https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10.57.27-AM-300x233.webp 300w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10.57.27-AM.webp 1024w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10.57.27-AM-768x597.webp 768w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10.57.27-AM-1536x1193.webp 1536w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-10-09-at-10.57.27-AM.webp 1600w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure><p>The post <a href="https://mszpro.com/swiftui-tabitem-deprecated">SwiftUI .tabItem deprecated in iOS 18.1 -> replace it with new Tab</a> first appeared on <a href="https://mszpro.com">MszPro・株式会社Smartソフト</a>.</p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>The repository Debian GNU/Linux 12 DVD does not have a Release file &#8211; how to fix</title>
		<link>https://mszpro.com/the-repository-debian-gnu-linux-12-dvd-does-not-have-a-release-file-how-to-fix</link>
		
		<dc:creator><![CDATA[msz]]></dc:creator>
		<pubDate>Mon, 16 Dec 2024 08:30:58 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Short Read]]></category>
		<guid isPermaLink="false">https://mszpro.com/?p=461</guid>

					<description><![CDATA[<p>Run the following to open the editor for And comment out the first line by adding # to the beginning Problem solved!</p>
<p>The post <a href="https://mszpro.com/the-repository-debian-gnu-linux-12-dvd-does-not-have-a-release-file-how-to-fix">The repository Debian GNU/Linux 12 DVD does not have a Release file – how to fix</a> first appeared on <a href="https://mszpro.com">MszPro・株式会社Smartソフト</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Run the following to open the editor for</p>



<pre class="wp-block-code"><code>sudoedit /etc/apt/sources.list</code></pre>



<p>And comment out the first line by adding <code>#</code> to the beginning</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="732" src="https://static-assets.mszpro.com/2024/12/Screenshot-2024-08-28-at-11.59.32-AM.webp" alt="" class="wp-image-462" srcset="https://static-assets.mszpro.com/2024/12/Screenshot-2024-08-28-at-11.59.32-AM-300x215.webp 300w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-08-28-at-11.59.32-AM.webp 1024w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-08-28-at-11.59.32-AM-768x549.webp 768w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-08-28-at-11.59.32-AM-1536x1098.webp 1536w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-08-28-at-11.59.32-AM.webp 1600w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Problem solved!</p><p>The post <a href="https://mszpro.com/the-repository-debian-gnu-linux-12-dvd-does-not-have-a-release-file-how-to-fix">The repository Debian GNU/Linux 12 DVD does not have a Release file – how to fix</a> first appeared on <a href="https://mszpro.com">MszPro・株式会社Smartソフト</a>.</p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SwiftUI List control spacing between sections (listSectionSpacing)</title>
		<link>https://mszpro.com/swiftui-list-section-spacing</link>
		
		<dc:creator><![CDATA[msz]]></dc:creator>
		<pubDate>Mon, 16 Dec 2024 08:11:03 +0000</pubDate>
				<category><![CDATA[Short Read]]></category>
		<category><![CDATA[SwiftUI]]></category>
		<guid isPermaLink="false">https://mszpro.com/?p=413</guid>

					<description><![CDATA[<p>In SwiftUI List, you can use the listSectionSpacing view modifier for List view to control how much space is in between different sections. Base code We will use this code as a starting point: Default spacing Here, you can set the default spacing using the .default as the input to the view modifier. Compact spacing [&#8230;]</p>
<p>The post <a href="https://mszpro.com/swiftui-list-section-spacing">SwiftUI List control spacing between sections (listSectionSpacing)</a> first appeared on <a href="https://mszpro.com">MszPro・株式会社Smartソフト</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>In SwiftUI List, you can use the <code>listSectionSpacing</code> view modifier for <code>List</code> view to control how much space is in between different sections.</p>



<h3 class="wp-block-heading">Base code</h3>



<p>We will use this code as a starting point:</p>



<pre class="wp-block-code"><code>//
//  ListSpacingControl.swift
//  WhatsNewIniOS18
//
//  Created by Msz on 8/10/24.
//

import SwiftUI

struct ListSpacingControl: View {
    
    let planets: &#91;String] = &#91;"Earth", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune"]
    let closeGalaxies = &#91;
        "Milky Way",
        "Andromeda Galaxy",
        "Large Magellanic Cloud",
        "Small Magellanic Cloud",
        "Triangulum Galaxy"
    ]
    
    var body: some View {
        
        List {
            
            Section("Planets") {
                ForEach(planets, id: \.self) { planet in
                    Text(planet)
                }
            }
            
            Section("Galaxies") {
                ForEach(closeGalaxies, id: \.self) { planet in
                    Text(planet)
                }
            }
            
        }
        .listSectionSpacing(.default)
        
    }
    
}

#Preview {
    ListSpacingControl()
}
</code></pre>



<h3 class="wp-block-heading">Default spacing</h3>



<p>Here, you can set the default spacing using the <code>.default</code> as the input to the view modifier.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="741" src="https://static-assets.mszpro.com/2024/12/Screenshot-2024-08-10-at-4.36.49-PM.webp" alt="" class="wp-image-414" srcset="https://static-assets.mszpro.com/2024/12/Screenshot-2024-08-10-at-4.36.49-PM-300x217.webp 300w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-08-10-at-4.36.49-PM.webp 1024w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-08-10-at-4.36.49-PM-768x556.webp 768w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-08-10-at-4.36.49-PM-1536x1112.webp 1536w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-08-10-at-4.36.49-PM.webp 1600w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading">Compact spacing</h3>



<p>You can set it to <code>compact</code> for relatively small spacing between different sections.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="632" src="https://static-assets.mszpro.com/2024/12/Screenshot-2024-08-10-at-4.38.42-PM.webp" alt="" class="wp-image-415" srcset="https://static-assets.mszpro.com/2024/12/Screenshot-2024-08-10-at-4.38.42-PM-300x185.webp 300w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-08-10-at-4.38.42-PM.webp 1024w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-08-10-at-4.38.42-PM-768x474.webp 768w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-08-10-at-4.38.42-PM-1536x948.webp 1536w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-08-10-at-4.38.42-PM.webp 1600w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading">Custom spacing</h3>



<p>You can set a custom spacing by providing a number.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="579" src="https://static-assets.mszpro.com/2024/12/Screenshot-2024-08-10-at-4.39.20-PM.webp" alt="" class="wp-image-416" srcset="https://static-assets.mszpro.com/2024/12/Screenshot-2024-08-10-at-4.39.20-PM-300x170.webp 300w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-08-10-at-4.39.20-PM.webp 1024w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-08-10-at-4.39.20-PM-768x434.webp 768w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-08-10-at-4.39.20-PM-1536x869.webp 1536w, https://static-assets.mszpro.com/2024/12/Screenshot-2024-08-10-at-4.39.20-PM.webp 1600w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p></p><p>The post <a href="https://mszpro.com/swiftui-list-section-spacing">SwiftUI List control spacing between sections (listSectionSpacing)</a> first appeared on <a href="https://mszpro.com">MszPro・株式会社Smartソフト</a>.</p>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Page Caching using Disk: Enhanced 
Lazy Loading (feed)
Database Caching 15/77 queries in 0.024 seconds using Disk

Served from: mszpro.com @ 2025-07-08 11:48:23 by W3 Total Cache
-->