<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Swift on Yaohong</title><link>https://yh.timefriend.vip/tags/swift/</link><description>Recent content in Swift on Yaohong</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 25 May 2024 19:55:20 +0800</lastBuildDate><atom:link href="https://yh.timefriend.vip/tags/swift/index.xml" rel="self" type="application/rss+xml"/><item><title>Must-know information about Swift</title><link>https://yh.timefriend.vip/post/programinglang/swiftlanguageinafile/</link><pubDate>Sat, 25 May 2024 19:55:20 +0800</pubDate><guid>https://yh.timefriend.vip/post/programinglang/swiftlanguageinafile/</guid><description>&lt;h1 id="must-know-information-about-swift"&gt;Must-know information about Swift&lt;/h1&gt;&#10;&lt;h2 id="entry-point"&gt;entry point&lt;/h2&gt;&#10;&lt;p&gt;main?&lt;/p&gt;&#10;&lt;h2 id="print-log"&gt;print log&lt;/h2&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;print(&amp;#34;Hello swift&amp;#34;)&#10;let name = &amp;#34;swift&amp;#34;&#10;print(&amp;#34;Hello, \(name)&amp;#34;)&#10;print(&amp;#34;Hello, \(name1 ?? name)&amp;#34;)// If the optional value is missing, the default value is used instead.&#10;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id="variable-constant"&gt;Variable, Constant&lt;/h2&gt;&#10;&lt;p&gt;Int:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;On a 32-bit platform, Int is the same size as Int32.&lt;/li&gt;&#10;&lt;li&gt;On a 64-bit platform, Int is the same size as Int64.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;UInt:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;On a 32-bit platform, UInt is the same size as UInt32.&lt;/li&gt;&#10;&lt;li&gt;On a 64-bit platform, UInt is the same size as UInt64.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Double represents a 64-bit floating-point number.&lt;/p&gt;</description></item></channel></rss>