<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by 寫點東西 on Medium]]></title>
        <description><![CDATA[Stories by 寫點東西 on Medium]]></description>
        <link>https://medium.com/@rightsomestuffs?source=rss-621c9f0c1e7c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*kH_FbYv1O1GSNMTgoMKFdA@2x.jpeg</url>
            <title>Stories by 寫點東西 on Medium</title>
            <link>https://medium.com/@rightsomestuffs?source=rss-621c9f0c1e7c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 05:04:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rightsomestuffs/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[網站健檢一定要做的五件事：淺談UX Audit基礎篇]]></title>
            <link>https://rightsomestuffs.medium.com/%E7%B6%B2%E7%AB%99%E5%81%A5%E6%AA%A2%E4%B8%80%E5%AE%9A%E8%A6%81%E5%81%9A%E7%9A%84%E4%BA%94%E4%BB%B6%E4%BA%8B-%E6%B7%BA%E8%AB%87ux-audit%E5%9F%BA%E7%A4%8E%E7%AF%87-4030ab4bbca7?source=rss-621c9f0c1e7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4030ab4bbca7</guid>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[ux-research]]></category>
            <category><![CDATA[customer-experience]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[audit]]></category>
            <dc:creator><![CDATA[寫點東西]]></dc:creator>
            <pubDate>Mon, 18 Jan 2021 03:06:21 GMT</pubDate>
            <atom:updated>2021-01-18T03:06:21.829Z</atom:updated>
            <content:encoded><![CDATA[<p>使用者經驗(user experience)一詞已在網站/App規劃中逐漸納入的概念，攤開104，關於這類的職業招募需求也早已不再是新興職業。許多企業開始顧及自身用戶的意見，因此，不論是產品開發或網站/App優化，都會針對現有產品進行「健康檢查」，而體檢後的優化消費者數位體驗流程，主要有兩項目的：（1）減少使用斷點發生，打造良好的使用體驗，增加產品轉換率；（2）提高品牌連結度，鞏固舊客、拉攏新客。</p><p>而在我開始接觸產品（主要以網站 / App為主）健檢的相關易用性研究已將近四年了，使用的調查工具不勝枚舉，量化像是PC電腦版300HZ與手機專屬版的80HZ眼動儀、SurveyCake、MediaLab等；質化則有焦點團體法、一對一訪談、卡片分類法等，每種方法都有各自的優缺點，你要做的是將時間成本、專案管理、預算考量及客戶需求納入考量以找出適合的工具。例如：我曾經接到的一個案子是關於網站優化前的健檢研究，當時從客人Brief到報告產出提案的時間只有約20個工作天，此時PM專案管理的重要性就提高了，不過這邊就不先贅述，講多了就離題今天的主軸了（笑）。</p><p>回歸正題，網站健康檢查的面向首先是定義面向健檢(Define your Audit Dimension)，不只是調查網站對使用者來說好不好用，還需要牽涉介面設計、搜尋引擎優化、網站本身內容等，一般來說，健檢一定要做的五件事情應包含：<br> <br><strong> 一、確認網站平台能見度</strong></p><p>網站平台能見度可分為 (1) 站外被搜尋引擎找到的機會 及（2）網站站內搜尋能否找到資訊。首先，站外搜尋引擎的健檢方式可以檢查網址是否過長、網站是否有建立XML Sitemap以及是否有部署Robots.txt，告知網站哪些內容可被檢索，又哪些不要被檢索 ，而若是要找尋應優化的關鍵字，建議可以透過Google Console優化SEO、Google keywords planner找尋淺在關鍵字、或付費的Similar Web比較競業網站。再者，網站站內搜尋可以檢查的是，搜尋功能是否清晰可見、搜尋是否有篩選功能或輸入搜尋字眼是否會出現建議字詞等。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QFpsX78MuZHiGVLQEaeVGQ.png" /></figure><p><strong>二、調查網站功能易用性</strong></p><p>網站功能易用性指的是基本功能是否容易使用的，讓消費者在使用上沒有不合適宜的斷點，易用性調查種類可以有網站導覽是否清楚、不同導覽介面是否具有一致性、網站有沒有根據趨勢製作RWD或網站的所有頁面是否為死路等都是功能易用性調查的範圍。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qS4lMTor02xWf6kma_jPlQ.png" /></figure><p><strong>三、檢視資訊內容正確性與調性</strong></p><p>網站內容的資訊正確性與調性其實是最基本的事情，像是基本資訊是否正確且為最新的，或是消費者能否透過內容辨識該內容目的以及是否有客製TA。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7DfnfqkoAaH0BhjENlnYng.png" /></figure><p><strong>四、介面設計與互動</strong></p><p>此處的介面設計與互動即為UI設計的健檢，考量的項目可分為：設計色調一致性、字體大小像是一般網站的字體普遍應至少為14px、設計顏色是否符合品牌調性及CTA按鈕是否簡潔明瞭。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v9aZ95EAOnXyULZODeVl9Q.png" /></figure><p><strong>五、網站整體使用經驗</strong></p><p>關於上述分類的健檢，我認為應該還要再做一件事情，就是調查「網站整體使用」，並且推薦SUS 整體易用性調查，關於如何使用，我推薦可以看<a href="https://blog.surveycake.com/10-23-73f87f636c5c">SurveyCake官方部落格</a>針對SUS量表使用的詳細介紹與說明。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0JCy1MhekEpnQ6JOR0esKg.png" /></figure><p>以上就是小弟本人在執行網站健檢會注意的五件事情，讀者若有需求，也不妨參照以上說明。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4030ab4bbca7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[iOS Xcode：黑寡婦計算機]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/ios-xcode-%E9%BB%91%E5%AF%A1%E5%A9%A6%E8%A8%88%E7%AE%97%E6%A9%9F-1981ce1fd9cc?source=rss-621c9f0c1e7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/1981ce1fd9cc</guid>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[marvel]]></category>
            <category><![CDATA[black-widow]]></category>
            <dc:creator><![CDATA[寫點東西]]></dc:creator>
            <pubDate>Mon, 07 Sep 2020 18:19:13 GMT</pubDate>
            <atom:updated>2020-09-07T18:19:13.200Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*VaQDxeyHcGcMcc7pyaxKiQ.jpeg" /><figcaption>圖一、黑寡婦（版權所屬迪士尼）</figcaption></figure><p>不知不覺也來到的第十篇了，也是本次實體課的最後一堂課，雖然現在Xcode對我來說還是相當的有挑戰與難度，也還不是那麼會寫Code，但十堂課下來，我相信比未上課的我進步很多了，至少可以做出一些簡易的功能，也大概懂一些概念了！</p><p>話不多說，這次要來做看看計算機，有加減乘除的功能，剛好最近「黑寡婦獨立電影」所屬公司迪士尼，重新公開新的電影上映日期為十月底（不要再延了啊），因此身為資深漫威迷的，當然不能錯過這次運用黑寡婦作為素材的機會囉。</p><p>命命為「寡姊計算機」，按照學習 IBOutlet 和 IBAction的目的執行操作，成果如下，能讓兩個數字成功進行加減乘除囉。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/365/1*1g7vP8h8FIo2mG98UHVDMQ.gif" /><figcaption>圖二、寡姊計算機</figcaption></figure><p>部分Coding如下</p><pre>import UIKitclass ViewController: UIViewController {@IBOutlet weak var answer: UILabel!@IBOutlet weak var numberOne: UITextField!@IBOutlet weak var numberTwo: UITextField!//四個按鈕@IBAction func plusButton(_ sender: UIButton) {//設常數<br>Int，再用label秀出let myplus = Int(numberOne.text!)! + Int(numberTwo.text!)!answer.text = “\(myplus)”textFieldnumberOne.text = “”numberTwo.text = “”}@IBAction func minusButton(_ sender: UIButton) {let myminus = Int(numberOne.text!)! — Int(numberTwo.text!)!answer.text = “\(myminus)”numberOne.text = “”numberTwo.text = “”}@IBAction func mutipleButton(_ sender: UIButton) {let mymutiple = Int(numberOne.text!)! * Int(numberTwo.text!)!answer.text = “\(mymutiple)”numberOne.text = “”numberTwo.text = “”}@IBAction func devideButton(_ sender: UIButton) {let mydevide = Double(numberOne.text!)! / Double(numberTwo.text!)!answer.text = “\(mydevide)”numberOne.text = “”numberTwo.text = “”}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1981ce1fd9cc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/ios-xcode-%E9%BB%91%E5%AF%A1%E5%A9%A6%E8%A8%88%E7%AE%97%E6%A9%9F-1981ce1fd9cc">iOS Xcode：黑寡婦計算機</a> was originally published in <a href="https://medium.com/peter-pan-swift-ios-class">彼得潘的 Swift iOS / Flutter App 開發教室</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[iOS Xcode_算命大仙：掌管愛情、事業與金錢]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/ios-xcode-%E7%AE%97%E5%91%BD%E5%A4%A7%E4%BB%99-%E6%8E%8C%E7%AE%A1%E6%84%9B%E6%83%85-%E4%BA%8B%E6%A5%AD%E8%88%87%E9%87%91%E9%8C%A2-a905662452b6?source=rss-621c9f0c1e7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a905662452b6</guid>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[ui]]></category>
            <dc:creator><![CDATA[寫點東西]]></dc:creator>
            <pubDate>Tue, 01 Sep 2020 07:11:30 GMT</pubDate>
            <atom:updated>2020-09-01T07:12:24.571Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*YyICmCMFUfuz5k83RqtMgg.png" /><figcaption>圖片版權皆非本人歸屬，僅供Coding練習，不作任何商業用途</figcaption></figure><p>由於家人的職業是「命理師」，因此在這次的練習當中，就一定要挑選練習中的「算命師」來當作此次 outlet，action 和字串的練習啦：）</p><p><strong>一、本次練習要能判斷輸入問題後的對應解答<br></strong>因此，我設定了三種問題：<br>1. 愛情：我能不能找到愛情？其中判斷字眼包含「愛情」、「男朋友」、「女朋友」與「love」<br>2. 錢財：我能不能有錢？其中判斷字眼包含「money」、「錢」、「賺錢」與<br>3. 聲望：我能不能有名？其中判斷字眼包含「有名」、「聲望」與「Reputation」</p><p><strong>二、部分程式碼</strong></p><pre><strong>@IBAction</strong> <strong>func</strong> SendButton(<strong>_</strong> sender: <strong>Any</strong>) {</pre><pre><strong>var</strong> youSay = &quot;\(textField.text)&quot;</pre><pre><strong>let</strong> oldTextView = textView.text</pre><pre><strong>if</strong> youSay.contains(&quot;賺錢&quot;) ||</pre><pre>youSay.contains(&quot;money&quot;) ||</pre><pre>youSay.contains(&quot;錢&quot;) {</pre><pre>textView.text = &quot;再努力加把勁，千萬不要放棄，堅持你的理想，絕對帶來財富&quot;</pre><pre>}</pre><pre><strong>else</strong> <strong>if</strong> youSay.contains(&quot;有名&quot;) ||</pre><pre>youSay.contains(&quot;Reputation&quot;) ||</pre><pre>youSay.contains(&quot;聲望&quot;) {</pre><pre>textView.text = &quot;先不要想著名望，只要把眼前的事情做好，一切水到渠成&quot;</pre><pre>}</pre><pre><strong>else</strong> <strong>if</strong> youSay.contains(&quot;愛情&quot;) ||</pre><pre>youSay.contains(&quot;love&quot;) ||</pre><pre>youSay.contains(&quot;結婚&quot;) ||</pre><pre>youSay.contains(&quot;男朋友&quot;) ||</pre><pre>youSay.contains(&quot;女朋友&quot;){</pre><pre>textView.text = &quot;點開你LINE上的第一位友人，就是你的另一半&quot;</pre><pre>}</pre><pre><strong>else</strong> {</pre><pre>textView.text = &quot;真是可惜呀，我聽不懂你的問題，請詢問「愛情、錢財與聲望」三種有關的問題&quot;</pre><pre>}</pre><p><strong>三、成果展現</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/370/1*HMf8LlJLV9QVIfSh4BY5SQ.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a905662452b6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/ios-xcode-%E7%AE%97%E5%91%BD%E5%A4%A7%E4%BB%99-%E6%8E%8C%E7%AE%A1%E6%84%9B%E6%83%85-%E4%BA%8B%E6%A5%AD%E8%88%87%E9%87%91%E9%8C%A2-a905662452b6">iOS Xcode_算命大仙：掌管愛情、事業與金錢</a> was originally published in <a href="https://medium.com/peter-pan-swift-ios-class">彼得潘的 Swift iOS / Flutter App 開發教室</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[iOS Xcode_調色大師練習＿為迪士尼公主換上美美的背景吧！]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/ios-xcode-%E8%AA%BF%E8%89%B2%E5%A4%A7%E5%B8%AB%E7%B7%B4%E7%BF%92-%E7%82%BA%E8%BF%AA%E5%A3%AB%E5%B0%BC%E5%85%AC%E4%B8%BB%E6%8F%9B%E4%B8%8A%E7%BE%8E%E7%BE%8E%E7%9A%84%E8%83%8C%E6%99%AF%E5%90%A7-d4d1f0369e92?source=rss-621c9f0c1e7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4d1f0369e92</guid>
            <category><![CDATA[filters]]></category>
            <category><![CDATA[xcode]]></category>
            <dc:creator><![CDATA[寫點東西]]></dc:creator>
            <pubDate>Mon, 24 Aug 2020 14:07:14 GMT</pubDate>
            <atom:updated>2020-08-25T06:13:58.478Z</atom:updated>
            <content:encoded><![CDATA[<p>自從『無敵破壞王2』裡的迪士尼公主「整團」在電影出現後，就造成一波新的「迪士尼公主熱」，即使上映已經有兩三年之久了，到現在還是很多人敲碗迪士尼可以真的出一版「公主一起打怪」的電影，身為資深迪士尼粉的我，想當然也是敲碗啦！因此這次「調色大師」的練習，就選擇經典的迪士尼公主合照，作為練習對象吧！</p><p><strong>一、為迪士尼公主團體照去背</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*WTm4xBAKvbHZpIjAEnr1dw.png" /><figcaption>圖一、背景被去掉了（原本要去膚色，但是太難去所以放棄哈）</figcaption></figure><p><strong>二、新增三個Slider用三原色Red,Green與Blue（RGB）示之<br>（包含透明度，要加一個alpha）</strong></p><pre><strong>@IBAction</strong> <strong>func</strong> changeColor(<strong>_</strong> sender: UISlider) {ImageView.backgroundColor = UIColor(red: CGFloat(redSlider.value), green: CGFloat(greenSlider.value), blue: CGFloat(blueSlider.value), alpha: CGFloat(alphaSlider.value))</pre><p><strong>三、設定漸層：方法參考彼得潘的做法<br></strong>網址：<a href="https://medium.com/%E5%BD%BC%E5%BE%97%E6%BD%98%E7%9A%84-swift-ios-app-%E9%96%8B%E7%99%BC%E5%95%8F%E9%A1%8C%E8%A7%A3%E7%AD%94%E9%9B%86/%E5%88%A9%E7%94%A8-cagradientlayer-%E8%A3%BD%E4%BD%9C%E6%BC%B8%E5%B1%A4-e86cee69f3a0">https://medium.com/%E5%BD%BC%E5%BE%97%E6%BD%98%E7%9A%84-swift-ios-app-%E9%96%8B%E7%99%BC%E5%95%8F%E9%A1%8C%E8%A7%A3%E7%AD%94%E9%9B%86/%E5%88%A9%E7%94%A8-cagradientlayer-%E8%A3%BD%E4%BD%9C%E6%BC%B8%E5%B1%A4-e86cee69f3a0</a></p><pre>let gradientView = UIView(frame: CGRect(x: 0, y: 0, width: 374, height: 297))let gradientLayer = CAGradientLayer()gradientLayer.frame = gradientView.boundsgradientLayer.colors = [UIColor.orange.cgColor, UIColor.blue.cgColor]gradientView.layer.addSublayer(gradientLayer)gradientView</pre><p>四、設定圓角：</p><pre><strong>@IBAction</strong> <strong>func</strong> changeRadiusSlider(<strong>_</strong> sender: UISlider) {ImageView.clipsToBounds = <strong>true</strong>ImageView.layer.cornerRadius = CGFloat(radiusSlider.value)shadowView.layer.cornerRadius = CGFloat(radiusSlider.value)</pre><p>以上為基本設定，其他設計就包含新增label，為了凸顯背景顏色跟照片編輯的差異，有了以下命名：</p><pre>玩美背景色：指RGB中，可讓使用者任意調整喜歡的顏色<br>玩美客製化：依照使用者需求與喜好，調整「圓角」、「漸層」與「透明度」</pre><p>最終成品為以下示之囉！</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/365/1*lF8LZ4MIDUd1cp6Fz6CseA.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4d1f0369e92" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/ios-xcode-%E8%AA%BF%E8%89%B2%E5%A4%A7%E5%B8%AB%E7%B7%B4%E7%BF%92-%E7%82%BA%E8%BF%AA%E5%A3%AB%E5%B0%BC%E5%85%AC%E4%B8%BB%E6%8F%9B%E4%B8%8A%E7%BE%8E%E7%BE%8E%E7%9A%84%E8%83%8C%E6%99%AF%E5%90%A7-d4d1f0369e92">iOS Xcode_調色大師練習＿為迪士尼公主換上美美的背景吧！</a> was originally published in <a href="https://medium.com/peter-pan-swift-ios-class">彼得潘的 Swift iOS / Flutter App 開發教室</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[iOS Xcode_Playground練習：印出告白歌詞好簡單，[王若琳，我只在乎你]]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/ios-xcode-playground%E7%B7%B4%E7%BF%92-%E5%8D%B0%E5%87%BA%E5%91%8A%E7%99%BD%E6%AD%8C%E8%A9%9E%E5%A5%BD%E7%B0%A1%E5%96%AE-%E7%8E%8B%E8%8B%A5%E7%90%B3-%E6%88%91%E5%8F%AA%E5%9C%A8%E4%B9%8E%E4%BD%A0-c1cf322fd8a6?source=rss-621c9f0c1e7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1cf322fd8a6</guid>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[playground]]></category>
            <category><![CDATA[lyrics]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[xcode]]></category>
            <dc:creator><![CDATA[寫點東西]]></dc:creator>
            <pubDate>Tue, 11 Aug 2020 05:54:05 GMT</pubDate>
            <atom:updated>2020-08-11T05:54:43.711Z</atom:updated>
            <content:encoded><![CDATA[<h3>iOS Xcode_Playground練習：印出歌詞好簡單，[王若琳，我只在乎你]</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0vGOS9gSD5yrBADcsTQOYA.jpeg" /></figure><p>最近一直瘋狂在聽甫入圍第31屆金曲獎最佳國語女歌手「王若琳」的翻唱歌曲「我只在乎你」，雖然歌詞復古，但透過王若琳，完全唱出新高度呀！</p><p>所以此次利用Playground改編歌詞的練習，馬上就想到這首歌，而且很多部分的「你」都可以作為練習替換的對象。部分歌詞如下：</p><pre>如果沒有遇見你 我將是會在哪裡<br>日子過得怎麼樣 人生是否要珍惜<br>也許認識某一人 過著平凡的日子<br>不知道會不會 也有愛情甜如蜜</pre><pre>任時光匆匆流去 我只在乎你<br>心甘情願感染你的氣息<br>人生幾何 能夠得到知己<br>失去生命的力量也不可惜<br>所以我求求你 別讓我離開你<br>除了你 我不能感到一絲絲情意</pre><p>解析上述歌詞，可以發現「你」共有6個，因此透過Function、String與Print就來改編囉，將「你」變成「name:String字串」，其餘有你的歌詞都會以name作為替換，最終改編如下：</p><pre><strong>import</strong> UIKit</pre><pre><strong>func</strong> 如果沒有遇見(name : String){</pre><pre>print(&quot;如果沒有遇見&quot; + name)</pre><pre>print(&quot;我將是會在哪裡&quot;)</pre><pre>print(&quot;日子過得怎麼樣 人生是否要珍惜&quot;)</pre><pre>print(&quot;也許認識某一人 過著平凡的日子&quot;)</pre><pre>print(&quot;不知道會不會 也有愛情甜如蜜&quot;)</pre><pre>print(&quot;任時光匆匆流去 我只在乎&quot; + name)</pre><pre>print(&quot;心甘情願感染&quot; + name + &quot;的氣息&quot;)</pre><pre>print(&quot;人生幾何 能夠得到知己&quot;)</pre><pre>print(&quot;失去生命的力量也不可惜&quot;)</pre><pre>print(&quot;所以我求求&quot; + name + &quot;別讓我離開&quot; + name)</pre><pre>print(&quot;除了&quot; + name + &quot;我不能感到一絲絲情意&quot;)</pre><pre>}</pre><pre>如果沒有遇見(name: &quot;Cheer&quot;)</pre><p>輸入上述程式碼後，成果如下：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*RqEII-CLjoDWY3Ffjp56yQ.png" /><figcaption>圖一、Print後結果</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1cf322fd8a6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/ios-xcode-playground%E7%B7%B4%E7%BF%92-%E5%8D%B0%E5%87%BA%E5%91%8A%E7%99%BD%E6%AD%8C%E8%A9%9E%E5%A5%BD%E7%B0%A1%E5%96%AE-%E7%8E%8B%E8%8B%A5%E7%90%B3-%E6%88%91%E5%8F%AA%E5%9C%A8%E4%B9%8E%E4%BD%A0-c1cf322fd8a6">iOS Xcode_Playground練習：印出告白歌詞好簡單，[王若琳，我只在乎你]</a> was originally published in <a href="https://medium.com/peter-pan-swift-ios-class">彼得潘的 Swift iOS / Flutter App 開發教室</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[iOS Xcode_Swift練習：練習繪製國旗]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/ios-xcode-swift%E7%B7%B4%E7%BF%92-%E7%B7%B4%E7%BF%92%E7%B9%AA%E8%A3%BD%E5%9C%8B%E6%97%97-198b92a620e?source=rss-621c9f0c1e7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/198b92a620e</guid>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[flags]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[寫點東西]]></dc:creator>
            <pubDate>Tue, 04 Aug 2020 07:27:19 GMT</pubDate>
            <atom:updated>2020-08-04T07:28:32.722Z</atom:updated>
            <content:encoded><![CDATA[<p>由於個人是網球愛好者，Roger Federer又是我從小到大的網球偶像明星，因此就想來繪製這位偉大GOAT球王所出生的國家「瑞士」。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*Nk01xQEypU7juWiF" /><figcaption>圖一、瑞士國旗</figcaption></figure><p>稍微拆解一下瑞士國旗，其實顏色組成跟圖形不難辨識：<br>1. 國旗底色接近亮紅色。<br>2. 中間有個白色十字，由兩個白色長方形色塊拼湊。</p><p>藉由上述的拆解，因此，我的程式碼就需要以下必要條件：<br>1. 設定國旗的底色：紅色<br>2. 設定兩個白色長方形位置：即X與Y座標<br>3. 設定並產生兩個白色長方形：將十字著色為白色<br>4. 將十字白色加上國旗底色中</p><p>因此最終程式碼設定如下：</p><p><strong>import</strong> UIKit</p><p><strong>var</strong> frame1 = CGRect(x: 0, y: 0, width: 600, height: 400)</p><p><strong>let</strong> flag = UIView(frame:frame1)</p><p>flag.layer.backgroundColor = UIColor(red: 0.9, green: 0.1, blue: 0.2, alpha: 1).cgColor</p><p><strong>let</strong> frame2 = CGRect(x: 265, y: 50, width: 70, height: 300)</p><p><strong>let</strong> frame3 = CGRect(x: 150, y: 165, width: 300, height: 70)</p><p><strong>let</strong> whiteRent1 = UIView(frame: frame2)</p><p><strong>let</strong> whiteRent2 = UIView(frame: frame3)</p><p>whiteRent1.layer.backgroundColor = UIColor(red: 1, green: 1, blue: 1, alpha: 1).cgColor</p><p>whiteRent2.layer.backgroundColor = UIColor(red: 1, green: 1, blue: 1, alpha: 1).cgColor</p><p>flag.addSubview(whiteRent1)</p><p>flag.addSubview(whiteRent2)</p><p>跑完程式後，下圖即為程式碼下的瑞士國旗囉！是不是很像呢？</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/1*KSxiLVYVB73D0I3VY9HtuA.png" /><figcaption>圖二、用程式碼繪製的瑞士國旗</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=198b92a620e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/ios-xcode-swift%E7%B7%B4%E7%BF%92-%E7%B7%B4%E7%BF%92%E7%B9%AA%E8%A3%BD%E5%9C%8B%E6%97%97-198b92a620e">iOS Xcode_Swift練習：練習繪製國旗</a> was originally published in <a href="https://medium.com/peter-pan-swift-ios-class">彼得潘的 Swift iOS / Flutter App 開發教室</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Xcode練習：用 Swift 打造「How You Like That」的跳舞機器人 BoogieBot]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/xcode%E7%B7%B4%E7%BF%92-%E7%94%A8-swift-%E6%89%93%E9%80%A0-how-you-like-that-%E7%9A%84%E8%B7%B3%E8%88%9E%E6%A9%9F%E5%99%A8%E4%BA%BA-boogiebot-68f1689593e2?source=rss-621c9f0c1e7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/68f1689593e2</guid>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[寫點東西]]></dc:creator>
            <pubDate>Wed, 22 Jul 2020 09:34:05 GMT</pubDate>
            <atom:updated>2020-07-28T05:33:50.661Z</atom:updated>
            <content:encoded><![CDATA[<p>終於開始進入到寫程式的入門了。<br>本次的練習首先必須先下載下方連結的電子書（官方Swift入門城市入門教學）並下載Student Marterial，即可下載跳舞機器人BoogieBot API。</p><p><a href="https://books.apple.com/us/book/intro-to-app-development-with-swift/id1118575552?source=post_page---------------------------">‎Intro to App Development with Swift</a></p><p>接下來，就是靠自己的「創意」為機器人下指令（Function）囉，包含左右手的舉起放下（LeftArmUp…）、左右腳的舉起放下（LeftLegUp…）、搖擺（shakeItLeft…）、跳上跳下（jumpUp…）與上色（fabulize）</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*oSaGeFc4M6LkjShYOhj9dQ.png" /><figcaption>圖一、BoogieBot可做哪些動作</figcaption></figure><p>於是，因為最近很常聽Kpop BLACKPINK的新歌「How You Like That」，看著副歌的舞步，覺得好像可以下指令讓跳舞機器人跳跳看，但由於這首歌舞步實在非常難（扭手又轉身等XD），跳舞機器人基本的指令根本無法滿足，因此最後的舞步簡化了，如下方（可惜版權無法上傳音檔），請笑納！</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/303/1*SwFwX8K00U8TtHXwz7rBQQ.gif" /><figcaption>圖二、How You Like That Coding Vers.</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68f1689593e2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/xcode%E7%B7%B4%E7%BF%92-%E7%94%A8-swift-%E6%89%93%E9%80%A0-how-you-like-that-%E7%9A%84%E8%B7%B3%E8%88%9E%E6%A9%9F%E5%99%A8%E4%BA%BA-boogiebot-68f1689593e2">Xcode練習：用 Swift 打造「How You Like That」的跳舞機器人 BoogieBot</a> was originally published in <a href="https://medium.com/peter-pan-swift-ios-class">彼得潘的 Swift iOS / Flutter App 開發教室</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[iOS Xcode_練習：仿畫Netflix，實踐左右與上下Scroll View]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/ios-xcode-%E7%B7%B4%E7%BF%92-%E4%BB%BF%E7%95%ABnetflix-%E5%AF%A6%E8%B8%90%E5%B7%A6%E5%8F%B3%E8%88%87%E4%B8%8A%E4%B8%8Bscroll-view-f9ee0eb8cea1?source=rss-621c9f0c1e7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9ee0eb8cea1</guid>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[netflix]]></category>
            <category><![CDATA[scrollview]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[xcode]]></category>
            <dc:creator><![CDATA[寫點東西]]></dc:creator>
            <pubDate>Mon, 20 Jul 2020 08:55:16 GMT</pubDate>
            <atom:updated>2020-07-20T08:56:59.027Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*hv29tBQ4ixmJAn9-QqUwwg.png" /></figure><p>本次Xcode的練習，使用了Tab Bar Controller、Table Controller與Navigation Controller即完成了模仿Netflix可以左右滑動與上下滑動選取影片的功能。</p><p><strong>＊左右滑動<br></strong>要實踐左右滑動，最重要的有三點：<br>1. 新增「Scroll View」<br>2. 在Scroll View上新增View，且View長度須大於Scroll View，如圖一所示</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*iYxT0Y0s6JnjpeAQiAqRrA.png" /><figcaption>圖一、View長度須大於Scroll View</figcaption></figure><p>3. 設定Scroll View 的 Content Size，顧名思義即設定捲動的範圍，在Key Path中新增並輸入「Con」若是要水平捲動，撇步為Content Size 的寬度要大於 Scroll View 的寬度才能水平捲動。詳情可查閱彼得潘：</p><p><a href="https://medium.com/%E5%BD%BC%E5%BE%97%E6%BD%98%E7%9A%84-swift-ios-app-%E9%96%8B%E7%99%BC%E5%95%8F%E9%A1%8C%E8%A7%A3%E7%AD%94%E9%9B%86/%E5%9C%A8-storyboard-%E8%A8%AD%E5%AE%9A-content-size-%E5%AF%A6%E7%8F%BE%E6%B0%B4%E5%B9%B3%E6%8D%B2%E5%8B%95%E7%9A%84-scroll-view-2710fa247293">https://medium.com/%E5%BD%BC%E5%BE%97%E6%BD%98%E7%9A%84-swift-ios-app-%E9%96%8B%E7%99%BC%E5%95%8F%E9%A1%8C%E8%A7%A3%E7%AD%94%E9%9B%86/%E5%9C%A8-storyboard-%E8%A8%AD%E5%AE%9A-content-size-%E5%AF%A6%E7%8F%BE%E6%B0%B4%E5%B9%B3%E6%8D%B2%E5%8B%95%E7%9A%84-scroll-view-2710fa247293</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*9uW2k9bKigSMQ9al6IdVTg.png" /><figcaption>圖二、需設定Key Path為「contentSize」</figcaption></figure><p>最後就是模擬器畫面囉，如下方所示：<br>一、首頁影片選擇左右滑動</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/1*0LnURjRm-ORKUzo5a-OoXw.gif" /></figure><p>二、搭配Table Controller實踐左右與上下捲動</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/1*4oS0h7NrjVcUGHkYQdh5Vw.gif" /></figure><p>三、實踐Navigation Controller</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/1*ppBSP1-8y9ECS-RnIoeVEw.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9ee0eb8cea1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/ios-xcode-%E7%B7%B4%E7%BF%92-%E4%BB%BF%E7%95%ABnetflix-%E5%AF%A6%E8%B8%90%E5%B7%A6%E5%8F%B3%E8%88%87%E4%B8%8A%E4%B8%8Bscroll-view-f9ee0eb8cea1">iOS Xcode_練習：仿畫Netflix，實踐左右與上下Scroll View</a> was originally published in <a href="https://medium.com/peter-pan-swift-ios-class">彼得潘的 Swift iOS / Flutter App 開發教室</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[iOS Xcode_練習：從Sketch到Zeplin再到Xcode，原來沒那麼可怕！]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/ios-xcode-%E7%B7%B4%E7%BF%92-%E5%BE%9Esketch%E5%88%B0zeplin%E5%86%8D%E5%88%B0xcode-%E5%8E%9F%E4%BE%86%E6%B2%92%E9%82%A3%E9%BA%BC%E5%8F%AF%E6%80%95-5c8b9a3a4bdb?source=rss-621c9f0c1e7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c8b9a3a4bdb</guid>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[sketch]]></category>
            <category><![CDATA[zeplin]]></category>
            <category><![CDATA[ui]]></category>
            <dc:creator><![CDATA[寫點東西]]></dc:creator>
            <pubDate>Wed, 15 Jul 2020 11:03:32 GMT</pubDate>
            <atom:updated>2020-07-16T03:13:13.376Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pN1Aqgf3t6vqLk2ejcx9_w.png" /></figure><p>工程師沒有繪畫天份沒關係！有了Zeplin，任何設計師繪製UI設計，你都能完全無縫刻出來！</p><p>身為使用者體驗數位產品PM，很多時候懂產品資訊與表面是不夠的，更需要的是「親自下海」操刀的基礎。因此這回，我依照彼得潘的IOS程式設計教學，從Sketch、Zeplin再到Xcode（未寫程式），實際執行「刻板」畫面。其中在Xcode中，我只用了三種Controller，分別為：</p><ol><li>View Controller （建立背景色塊，作為墊底）</li><li>Tab Bar Controller（作為切換Tab頁面的下方水平Bar）</li><li>Navigation Controller（管裡其它 Controller的Controller，它可以去要求顯顯示哪個Controller畫面）</li></ol><p>以下為從Sketch到Zeplin再到Xcode的實際操作心得與值得注意的事：</p><p><strong>一、從Sketch至Zeplin<br></strong>主要就是透過Plugins這個功能，將從Sketch已繪製好的UI設計，去「插件」至Zeplin。</p><p>步驟1：選擇要插入的UI Prototypes<br>步驟2：點選「Plugins」、選擇「Zeplin」，再點選「Export Selected」<br>注意的事：確保所有UI元件都被選到，否則必須重複來回Plugin</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1SAQlIjBiEgFpfGirIoHmw.png" /><figcaption>圖一、Sketch</figcaption></figure><p><strong>二、從Zeplin到Xcode<br></strong>Zeplin強大之處在於它可以讓UI設計師上傳自己設計，讓工程師可以取得設計師的實際圖檔、色塊顏色等，更可以知道該設計的所有大小事，包含元件位置、圖片大小、字體等，因此，你可以透過Zeplin匯出顏色與圖片。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*scztdFguVCDwmrMDAiKucQ.png" /><figcaption>圖二、Zeplin上的色塊1（按右箭頭按鈕）</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VXmm56o6l2SwYjc0OtUWHA.png" /><figcaption>圖三、Zeplin上的色塊2（按右上角右箭頭按鈕）</figcaption></figure><p>選擇要匯入Xcode Assets的色塊，點擊如圖二所示的右箭頭按鈕，並進到如圖三畫面後，再點選右上角右箭頭按鈕，即可匯出(Export)至Xcode Assets中。</p><p>要匯出圖片至Xcode Assets也是，Peter大師有教學如何「匯出所有圖片」的超快教學，如下方連結供參考（我第一次使用時，可是一張張匯進去或另存成圖片…真的超慢呀XD）：</p><p><a href="https://medium.com/%E5%BD%BC%E5%BE%97%E6%BD%98%E7%9A%84-swift-ios-app-%E9%96%8B%E7%99%BC%E5%95%8F%E9%A1%8C%E8%A7%A3%E7%AD%94%E9%9B%86/%E5%BE%9E-zeplin-%E5%B0%87%E9%A1%8F%E8%89%B2-%E5%9C%96%E7%89%87%E8%BC%B8%E5%87%BA%E5%88%B0-xcode-%E7%9A%84-assets-d3fc2e7876fb">從 Zeplin 將顏色 &amp; 圖片輸出到 Xcode 的 assets</a></p><p><strong>三、Xcode「刻板」撇步<br></strong>不過即使是Zeplin，匯入到Xcode後，也不是所有都不用做了，在此練習中透過View Controller （建立背景色塊，作為墊）、Tab Bar Controller（作為切換Tab頁面的下方水平Bar）與Navigation Controller（管裡其它 Controller的Controller，它可以去要求顯顯示哪個Controller畫面）則可以巧妙複製一模一樣的UI設計！以下圖四為我在模擬器的刻板模樣，是不是與原版很像呢XD</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/1*Zchb5-T2Hwk6CFQQRL1Ulg.gif" /><figcaption>圖四、Xcode刻板</figcaption></figure><p>另外，在學習過程中，想分享的是圓角的使用，現在App許多圓角設計，會讓App看起來更加和諧，作法如下：</p><p>步驟1：選擇要設定圓角的image view<br>步驟2：點選「Show the identity inspector」（圖五右上藍色按鈕）<br>步驟3：在「User Defined Runtime Attributes」中點擊「＋」按鈕<br>步驟4：設定key Path並正確輸入「layer.cornerRadius」，Type選擇「Number」，代表可以自訂數值（Value）<br>觀察圓角撇步：想模仿圓角數值，可以透過Zeplin中的Radius中得知。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fowGaUNFUNPsVzOY_jz8Dw.png" /><figcaption>圖五、Show the identity inspector（右上藍色按鈕）</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-F-Ovr4qiBy1zwghb3a4fQ.png" /><figcaption>圖六、Zeplin圓角，於Radius中得知</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c8b9a3a4bdb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/ios-xcode-%E7%B7%B4%E7%BF%92-%E5%BE%9Esketch%E5%88%B0zeplin%E5%86%8D%E5%88%B0xcode-%E5%8E%9F%E4%BE%86%E6%B2%92%E9%82%A3%E9%BA%BC%E5%8F%AF%E6%80%95-5c8b9a3a4bdb">iOS Xcode_練習：從Sketch到Zeplin再到Xcode，原來沒那麼可怕！</a> was originally published in <a href="https://medium.com/peter-pan-swift-ios-class">彼得潘的 Swift iOS / Flutter App 開發教室</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[iOS Xcode_練習：研究UI元件]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/ios-xcode-%E7%B7%B4%E7%BF%92-%E7%A0%94%E7%A9%B6ui%E5%85%83%E4%BB%B6-c9836a334800?source=rss-621c9f0c1e7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9836a334800</guid>
            <category><![CDATA[code]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[ui]]></category>
            <dc:creator><![CDATA[寫點東西]]></dc:creator>
            <pubDate>Tue, 14 Jul 2020 08:08:25 GMT</pubDate>
            <atom:updated>2020-07-14T08:08:25.804Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Segmented Control，Slider，Switch，Activity Indicator View，Progress View，Page Control，Date Picker，Visual Effect View with Blur</strong></p><p>在iOS Xcode中，有各式各樣的UI元件，每個UI元件其屬性跟操作方式都非常不同，以下就來介紹幾種常用的UI元件。</p><h4>Segmented Control</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X1p820RpDPBU8hoOiOMTHg.png" /><figcaption>圖一：Segmented Control</figcaption></figure><p>Segemented Control 中文名為「分段式按鈕」（此專有名詞查了好久..），最常被作為二分選擇上的使用，如下方App Store圖示。而在設定時，需要注意以下事項：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*SAdTWjT_ps3fKWp5afvm3w.png" /><figcaption>圖二：Segmented Control (App Store示意）</figcaption></figure><p>＋Segments：使用者決定分幾段，最少兩個，至多我看設定20個都沒問題（只是沒人會照樣用，不符合UI邏輯）。<br>＋Segment：選擇分段的Segment。<br>＋Title：該Segment名稱，你可為其命名。<br>＋Image：該Segment的顯圖片，不過Title和Image只能擇一喔。<br>＋Selected：設定預設是否被點選，如圖二，若設定「免費App」為預設被選擇，則前台UI顯示時，便會預先被設定。</p><h4><strong>Slider</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OzqkvR8tTEJe3bulX0iKbw.png" /><figcaption>圖三、Slider</figcaption></figure><p>Slider中文在台灣通常被稱作為滑動條，也可被稱作滑塊或滑桿（較為大陸用法），設定Slider時作法，可先設定Minimum與Maximum，確定最小值與最大值後，再設定Value（位置），如圖三，設定Minimum與Maximum為0與1時，當Value為0.5，代表置於滑動條的中間。</p><p>＋Value：Slider圓圈的預位置，<br>＋Minimum：Slider在最左方其最小數值。<br>＋Maximum：Slider在最右方其最大數值。<br>＋Min / Max Image：Slider 左右兩側 顯示之圖片。<br>＋Min Track ：左邊至圓圈的線條顏色（圖三為紫色）。<br>＋Max Track：右邊至圓圈的線條顏色（圖三為灰色）。<br>＋Thumb Tint：圓圈的顏色（圖三為藍色）。</p><h4><strong>Switch</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0mQK7movGRfTY3Sy5Gkf1g.png" /><figcaption>圖四、Switch</figcaption></figure><p>Switch的中文名為「開關」，顧名思義即為元件功能的打開與關閉。基本設定說明為：</p><p>＋State：選擇的switch狀態。圖四為On固定在右，Off固定在左。<br>＋On Tint：開關為on時，其左至按鈕間的顏色（圖四為藍色）。<br>＋Thumb Tint：開關按鈕的顏色（圖四為白色）。</p><h4><strong>Activity Indicator View</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E1iKnucV_NrYbHzitHSZoQ.png" /><figcaption>圖五、Activity Indicator View</figcaption></figure><p>Activity Indicator View中文可稱為活動指向，用途作為等待應用程式至下一頁或下個動作前的指向標記。</p><p>＋Style：設計活動指向的風格。有Medium、Large、Large White、White與Gray可供選擇。<br>＋Color：選擇該活動指向的顏色。<br>＋Animating：當勾選Animating時，模擬器是真的會轉動XD。</p><h4><strong>Progress View</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZQqWpa5gFCROVxoqWY14Rw.png" /><figcaption>圖六、Progress View</figcaption></figure><p>Progress View可視為「進度條」，通常用作於問卷上方或資料填寫的完成進度，功能說明為：</p><p>＋Style：選擇進度條的風格，預設為Default（指未完成進度會以灰色上色）；另一種則為Bar表示未上色（不過Track Tint上色時則同樣會上色）。<br>＋Progress：即目前進度，以0.1作為單位，最小值為1、最大值為1。若要成為百分比，可輸入0.01–0.99。<br>＋Progress Tint：選擇完成進度條顏色。<br>＋Track Tint：選擇未完成進度條顏色。<br>＋Progress Image：選擇完成進度條圖片。<br>＋ Track Image：選擇未完成進度條顏色。</p><h4><strong>Page Control</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JGtNQmp9X4z0T2EHTHvMlA.png" /><figcaption>圖七、Page Control</figcaption></figure><p>Page Control也可以稱作為「錨點」，用來告訴使用者現在正在哪一頁，以及暗示使用者總共有幾頁且有告知進度的意味。</p><p>+Page：# of Pages 指共有幾頁；Current則是指現在在第幾頁。<br>+Behavior：Hide for Single Page指的是頁數指為1時不會顯示。<br>+Tint Color：指非當前頁的顏色（全部當前頁統一調整）。<br>+Current Color：指當前頁的顏色。</p><h4><strong>Date Picker</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tcUU6OjQEdzceDlbukMiCQ.png" /><figcaption>圖八、Date Picker</figcaption></figure><p>+Mode：指日期選擇，有單純時間、單純日期、日期＋時間及倒數計時器等四種可供選擇。<br>+Locale：指時區，通常一般以Default預設為主。<br>+Interval：可時間分鐘區間，從間隔1分鐘到間隔30分鐘都有。<br>+Date：有Current Date 或 Custom可選擇。另外，還可以設定Minimun到Maximum的日期限制喔。</p><h4><strong>Visual Effect View with Blur</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*I4bPcArbZtKK4Zom" /><figcaption>圖九、毛玻璃效果</figcaption></figure><p>Visual Effect View with Blur是指「毛玻璃效果」，近日在各種App常出現的模糊效果，當一些App功能屬於Pop up時，就很適合使用毛玻璃效果</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O2j3f45nZb7dhFFHGxFfNw.png" /><figcaption>圖十、Visual Effect View with Blur</figcaption></figure><p>＋Blur Style：最新版本的Xocde beta 有超過20種的效果供選擇，不過常見的分別是Extra Light、Light、Dark、Regular 與 Prominent。</p><p>以上，為本次Xcdoe上UI元件的分享。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9836a334800" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/ios-xcode-%E7%B7%B4%E7%BF%92-%E7%A0%94%E7%A9%B6ui%E5%85%83%E4%BB%B6-c9836a334800">iOS Xcode_練習：研究UI元件</a> was originally published in <a href="https://medium.com/peter-pan-swift-ios-class">彼得潘的 Swift iOS / Flutter App 開發教室</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>