<?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/@purplered?source=rss-51ac2e49edd2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*spenslFay3we0k1Lc6lK-A@2x.jpeg</url>
            <title>Stories by 楊子弘 on Medium</title>
            <link>https://medium.com/@purplered?source=rss-51ac2e49edd2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 18:36:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@purplered/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[#9 Data Visualization 練習]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/9-data-visualization-%E7%B7%B4%E7%BF%92-41883e249427?source=rss-51ac2e49edd2------2</link>
            <guid isPermaLink="false">https://medium.com/p/41883e249427</guid>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[楊子弘]]></dc:creator>
            <pubDate>Thu, 05 Aug 2021 12:10:42 GMT</pubDate>
            <atom:updated>2021-08-07T13:13:48.808Z</atom:updated>
            <content:encoded><![CDATA[<p>學習使用 API 製作圖表</p><p>圓餅圖 (Pic Chart)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*8DLjfGhAIfjR1hKvMcpHFQ.png" /></figure><p>圖中顯示標普500前十大公司的成分佔比，可以看到500間公司的前十大公司竟然佔比高達28.8%，足以說明強者恆強，更重要的是，此圖只能顯示8個項目，目前功力不足，還無法調整成能完整顯示</p><p>(數據統計至2021/08/04，股票漲跌會影響個股權重)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*4Y-n4rsxLUIpa2Oj95bLGg.png" /></figure><pre>makePieChart()</pre><pre>addWedge(withProportion: 0.062, color: .red)</pre><pre>addWedge(withProportion: 0.058, color: .blue)</pre><pre>addWedge(withProportion: 0.039, color: .green)</pre><pre>addWedge(withProportion: 0.022, color: .lightGray)</pre><pre>addWedge(withProportion: 0.022, color: .cyan)</pre><pre>addWedge(withProportion: 0.021, color: .yellow)</pre><pre>addWedge(withProportion: 0.015, color: .orange)</pre><pre>addWedge(withProportion: 0.014, color: .magenta)</pre><pre>addWedge(withProportion: 0.013, color: .purple)</pre><pre>addWedge(withProportion: 0.012, color: .gray)</pre><pre>addWedge(withProportion: 0.722, color: .black)</pre><pre>addKeyItem(withLabel: &quot;AAPL&quot;, color: .red)</pre><pre>addKeyItem(withLabel: &quot;MSFT&quot;, color: .blue)</pre><pre>addKeyItem(withLabel: &quot;AMZN&quot;, color: .green)</pre><pre>addKeyItem(withLabel: &quot;FB&quot;, color: .lightGray)</pre><pre>addKeyItem(withLabel: &quot;GOOGL&quot;, color: .cyan)</pre><pre>addKeyItem(withLabel: &quot;GOOG&quot;, color: .yellow)</pre><pre>addKeyItem(withLabel: &quot;TSLA&quot;, color: .orange)</pre><pre>addKeyItem(withLabel: &quot;BRK.B&quot;, color: .magenta)</pre><pre>addKeyItem(withLabel: &quot;NVDA&quot;, color: .purple)</pre><pre>addKeyItem(withLabel: &quot;JPM&quot;, color: .gray)</pre><pre>addKeyItem(withLabel: &quot;The others&quot;, color: .black)</pre><p>長條圖 (Bar Chart)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*AXCox_fYSLna91f2Xy7Kmg.png" /></figure><p>統計世界使用人數前八的語言，單位為億</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y1BNyTxp7LdH-sO0qW_e5w.png" /></figure><pre>makeBarChart()</pre><pre>setYAxis(minimum: 0, maximum: 13)</pre><pre>addBar(withLength: 12.68, color: .yellow)</pre><pre>addBar(withLength: 11.12, color: .green)</pre><pre>addBar(withLength: 6.373, color: .red)</pre><pre>addBar(withLength: 5.379, color: .purple)</pre><pre>addBar(withLength: 2.766, color: .gray)</pre><pre>addBar(withLength: 2.74, color: .blue)</pre><pre>addBar(withLength: 2.652, color: .orange)</pre><pre>addBar(withLength: 2.58, color: .brown)</pre><pre>addBarLabel(&quot;英語&quot;)</pre><pre>addBarLabel(&quot;漢語&quot;)</pre><pre>addBarLabel(&quot;印地語&quot;)</pre><pre>addBarLabel(&quot;西班牙語&quot;)</pre><pre>addBarLabel(&quot;法語&quot;)</pre><pre>addBarLabel(&quot;阿拉伯語&quot;)</pre><pre>addBarLabel(&quot;孟加拉語&quot;)</pre><pre>addBarLabel(&quot;俄語&quot;)</pre><p>散佈圖 (Scatter Plot)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*IuATCgqKZxrnvfwIMjkonw.png" /></figure><p>統計某班級的同學身高體重，黑點為女生，紅點為男生，可得知男生普遍身高較高，女生較矮，而體重則與性別無正相關（實際上使用散佈圖統計時，收集資料需30組以上更有參考價值）</p><pre>makePlot()</pre><pre>setXAxis(minimum: 40, maximum: 80)</pre><pre>setYAxis(minimum: 150, maximum: 190)</pre><pre>addPointAt(x: 50, y: 160, color: .black)</pre><pre>addPointAt(x: 45, y: 155, color: .black)</pre><pre>addPointAt(x: 55, y: 165, color: .black)</pre><pre>addPointAt(x: 65, y: 163, color: .black)</pre><pre>addPointAt(x: 70, y: 180, color: .red)</pre><pre>addPointAt(x: 50, y: 175, color: .red)</pre><pre>addPointAt(x: 53, y: 167, color: .red)</pre><pre>addPointAt(x: 54, y: 173, color: .red)</pre><pre>addPointAt(x: 65, y: 183, color: .red)</pre><ul><li><a href="https://medium.com/%E5%BD%BC%E5%BE%97%E6%BD%98%E7%9A%84%E8%A9%A6%E7%85%89-%E5%8B%87%E8%80%85%E7%9A%84-100-%E9%81%93-swift-ios-app-%E8%AC%8E%E9%A1%8C/data-visualization-%E7%B7%B4%E7%BF%92-6b47fd9c0e45">Data Visualization 練習</a></li><li><a href="https://www.slickcharts.com/sp500">S&amp;P 500 Companies - S&amp;P 500 Index Components by Market Cap</a></li><li><a href="https://zh.m.wikipedia.org/wiki/%E6%8C%89%E4%BA%BA%E5%8F%A3%E6%8E%92%E5%88%97%E7%9A%84%E8%AF%AD%E8%A8%80%E5%88%97%E8%A1%A8?fbclid=IwAR2hf4FVdBxLVNwi6z4LJP8ybt33uLQOLpyeDcHRua9uk3Lk-uQQukfxsVo">按人口排列的语言列表 - 维基百科，自由的百科全书</a></li><li><a href="https://wiki.mbalib.com/zh-tw/%E6%95%A3%E5%B8%83%E5%9B%BE">散佈圖</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41883e249427" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/9-data-visualization-%E7%B7%B4%E7%BF%92-41883e249427">#9 Data Visualization 練習</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[#8 用 Swift 打造跳舞機器人 BoogieBot]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/8-%E7%94%A8-swift-%E6%89%93%E9%80%A0%E8%B7%B3%E8%88%9E%E6%A9%9F%E5%99%A8%E4%BA%BA-boogiebot-8a3f9c011a76?source=rss-51ac2e49edd2------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a3f9c011a76</guid>
            <category><![CDATA[boogiebot]]></category>
            <dc:creator><![CDATA[楊子弘]]></dc:creator>
            <pubDate>Thu, 05 Aug 2021 08:38:41 GMT</pubDate>
            <atom:updated>2021-08-07T13:12:38.443Z</atom:updated>
            <content:encoded><![CDATA[<p>學習使用機器人 BoogieBot 提供的 API 來讓機器人跳舞</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*QLKN-FjT6RJuuBXigL28iQ.gif" /></figure><pre>startBot()</pre><pre>startRecording()</pre><pre>setBotTitle(&quot;Robot Dance&quot;)</pre><pre>setBotSubtitle(&quot;By PurpleRed&quot;)</pre><pre><strong>func</strong> robotDance(){</pre><pre>leftArmUp()</pre><pre>leftArmDown()</pre><pre>fabulize()</pre><pre>rightArmUp()</pre><pre>rightArmDown()</pre><pre>leftLegUp()</pre><pre>leftLegDown()</pre><pre>rightLegUp()</pre><pre>rightLegDown()</pre><pre>shakeItLeft()</pre><pre>shakeItRight()</pre><pre>shakeItCenter()</pre><pre>jumpUp()</pre><pre>jumpDown()</pre><pre>leftArmUp()</pre><pre>defabulize()</pre><pre>}</pre><pre><strong>for</strong> danceTimes <strong>in</strong> 1...3 {</pre><pre>robotDance()</pre><pre>}</pre><p>參考了其他同學的做法，把所有的動作包在一個 function 內，之後使用 for-in 讓他重複執行</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EYRWHR0TxhozzDlKcnRDQw.png" /></figure><p>不知道是不是因為我的 Xcode 是 Beta 版本的關係，一開始執行的時候一直沒有機器人的畫面，進度條也轉圈很久都沒有反應，還好重開後就可以成功顯示了</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T7Xv0ewsfX-mIO5c4h0p-Q.png" /></figure><p>由於在調整機器人動作時有發現，每改一行好像都會跳出預覽，在定義 function 的時候因為還沒寫完，沒有輸入大括號導致錯誤，Xcode 整整閃退了三次，存 gif 檔案的時候也是整個卡住，存完要重開 Xcode ，到底是 Beta 版本的問題還是我的電腦問題還需研究🥲</p><p>（使用MacBook Pro 2016 13吋）</p><ul><li><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%E6%95%99%E5%AE%A4/05-%E7%94%A8swift%E6%89%93%E9%80%A0%E8%B7%B3%E8%88%9E%E6%A9%9F%E5%99%A8%E4%BA%BAboogiebot-4d0457147bf0">#用Swift打造跳舞機器人BoogieBot</a></li><li><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%E6%95%99%E5%AE%A4/%E7%94%A8-swift-%E6%89%93%E9%80%A0%E8%B7%B3%E8%88%9E%E6%A9%9F%E5%99%A8%E4%BA%BA-boogiebot-8cdc7ad1c1d5">用 Swift 打造跳舞機器人 BoogieBot</a></li><li><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%E6%95%99%E5%AE%A4/%E7%94%A8-swift-%E6%89%93%E9%80%A0%E8%B7%B3%E8%88%9E%E6%A9%9F%E5%99%A8%E4%BA%BA-boogiebot-199d07d9bb95">用 Swift 打造跳舞機器人 BoogieBot</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a3f9c011a76" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/8-%E7%94%A8-swift-%E6%89%93%E9%80%A0%E8%B7%B3%E8%88%9E%E6%A9%9F%E5%99%A8%E4%BA%BA-boogiebot-8a3f9c011a76">#8 用 Swift 打造跳舞機器人 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[#7 生活中的 Function 實例]]></title>
            <link>https://purplered.medium.com/7-%E7%94%9F%E6%B4%BB%E4%B8%AD%E7%9A%84-function-%E5%AF%A6%E4%BE%8B-7e6970be8e5d?source=rss-51ac2e49edd2------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e6970be8e5d</guid>
            <category><![CDATA[function]]></category>
            <dc:creator><![CDATA[楊子弘]]></dc:creator>
            <pubDate>Tue, 03 Aug 2021 12:42:04 GMT</pubDate>
            <atom:updated>2021-08-03T12:42:04.894Z</atom:updated>
            <content:encoded><![CDATA[<p>為了更瞭解 Function 的概念，以中文舉例平日上班的 routine</p><pre>func 上班 () {</pre><pre>起床()</pre><pre>盥洗()</pre><pre>坐火車()</pre><pre>到公司上班()</pre><pre>}</pre><pre>上班 ()</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e6970be8e5d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#6 模仿內建的照片App 實現照片牆效果]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/6-%E6%A8%A1%E4%BB%BF%E5%85%A7%E5%BB%BA%E7%9A%84%E7%85%A7%E7%89%87app-%E5%AF%A6%E7%8F%BE%E7%85%A7%E7%89%87%E7%89%86%E6%95%88%E6%9E%9C-a608df15baf8?source=rss-51ac2e49edd2------2</link>
            <guid isPermaLink="false">https://medium.com/p/a608df15baf8</guid>
            <category><![CDATA[storyboard]]></category>
            <dc:creator><![CDATA[楊子弘]]></dc:creator>
            <pubDate>Sun, 18 Jul 2021 10:53:27 GMT</pubDate>
            <atom:updated>2021-07-18T13:24:17.292Z</atom:updated>
            <content:encoded><![CDATA[<p>本次應用 Table View Controller、Scroll View、Navigation Controller、Tab Bar Controller 簡單模仿 IOS 內建的相片 App的功能。</p><p>與內建的相片 App 進行對比（左圖為內建相片 App 畫面）</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_b_CTVgx4FGqApxJF5-n0A.png" /></figure><p>實際操作畫面，可以發現操作時有點 lag ，推測應是照片牆的頁面一個Table View Cell 放入過多的 Image View 以及 Button 所導致，日後若需實現同樣的功能也需要考慮這些問題，可以尋找更好的解法；部分照片於設計時方向是正的，但實際執行時卻翻轉90度，以目前的技術水平尚無法排除此問題，先暫時略過。</p><p>素材為與好友的2018年初京阪神之旅，希望疫情早日結束，可以再出國玩🥲，日本真的好美！</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*nFzYVTHVnyiEW--DTZJBzQ.gif" /></figure><p>整體流程如下，圖庫的頁面沒有做任何功能</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*6PiosrDGyut3GFe0pEuW7w.png" /></figure><p>最後上傳至 Github 時發現 SecureTransport error : I/O error. (-1) 的錯誤，應該是檔案超過 100 mb 導致的，可能需要降低圖片的畫質，目前還沒找到方法。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*--ibbo-gM2TVvG5ScKR3HQ.png" /></figure><p><a href="https://stackoverflow.com/questions/67953115/xcode-github-%C2%B4securetransport-error-i-o-error-1%C2%B4">XCode - GitHub ´SecureTransport error: I/O error. (-1)´</a></p><p>參考來源</p><ul><li><a href="https://medium.com/%E5%BD%BC%E5%BE%97%E6%BD%98%E7%9A%84%E8%A9%A6%E7%85%89-%E5%8B%87%E8%80%85%E7%9A%84-100-%E9%81%93-swift-ios-app-%E8%AC%8E%E9%A1%8C/53-collection-view-%E7%85%A7%E7%89%87%E7%89%86-c03f156de0c">#53 照片牆(Grid Photo Wall)</a></li><li><a href="https://medium.com/%E5%BD%BC%E5%BE%97%E6%BD%98%E7%9A%84%E8%A9%A6%E7%85%89-%E5%8B%87%E8%80%85%E7%9A%84-100-%E9%81%93-swift-ios-app-%E8%AC%8E%E9%A1%8C/storyboard-%E9%9B%BB%E5%AD%90%E6%9B%B8-app-%E6%90%AD%E9%85%8D-tab-controller-table-controller-navigation-controller-%E5%BD%BC%E5%BE%97%E6%BD%98%E7%9A%84-ios-app-%E4%BD%9C%E6%A5%AD-aaa7e5f9165e">#24 Storyboard 電子書 App</a></li><li><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">設定 content size，實現水平捲動，上下捲動和分頁的 scroll view</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a608df15baf8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/6-%E6%A8%A1%E4%BB%BF%E5%85%A7%E5%BB%BA%E7%9A%84%E7%85%A7%E7%89%87app-%E5%AF%A6%E7%8F%BE%E7%85%A7%E7%89%87%E7%89%86%E6%95%88%E6%9E%9C-a608df15baf8">#6 模仿內建的照片App 實現照片牆效果</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[#5 將 App 從 Xcode 上安裝到 iPhone]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/5-%E5%B0%87-app-%E5%BE%9E-xcode-%E4%B8%8A%E5%AE%89%E8%A3%9D%E5%88%B0-iphone-bf5f56c0f537?source=rss-51ac2e49edd2------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf5f56c0f537</guid>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[installation]]></category>
            <dc:creator><![CDATA[楊子弘]]></dc:creator>
            <pubDate>Mon, 12 Jul 2021 13:53:36 GMT</pubDate>
            <atom:updated>2022-11-12T04:21:12.198Z</atom:updated>
            <content:encoded><![CDATA[<p>要安裝 App 到iPhone，首先我們需要先設定好 App 對應的 Apple ID，可依照下圖操作</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IXLsgf8Xh506A2B_Tc8rGg.png" /></figure><p>在 Team 欄位新增一個 Apple ID</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6EvAIfXbXSsZ37rB3dba3A.png" /></figure><p>輸入 Apple ID</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*KBidSi9_8pp9Jn50b2o4yQ.png" /></figure><p>Accounts 出現了剛才添加的 Apple ID</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UgiYeOd09w3aBX15pEj-WQ.png" /></figure><p>再來將 iPhone 與 Mac 連接，連接後選擇就可以在裝置處查看到 iPhone</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*v0u28L4ZJhWDJmG_n6Q07A.png" /></figure><p>2022更新：今年重新操作，在Xcode 14版本發現多了手機需要開啟開發者模式才可以使用</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-veySZN4iwaOVBBMTzuAMA.png" /></figure><p>在iphone的設定&gt;隱私權與安全性&gt;開發者模式，開啟後輸入密碼並重開機就可以了</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*90gnvH7yZaBk3YKe0J8x9g.png" /></figure><p>讓裝置loading一下</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NjlMOD1lpcCWZE3H1cxDXg.png" /></figure><p>搞定了，讓我們回來</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xebE-IXFdGmHukTQkcMT9w.png" /></figure><p>選擇裝置後按下執行</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gpId7UAuC4WBCLKsGbcmkw.png" /></figure><p>執行後發現因手機沒有信任該開發者，導致安裝後無法執行程式</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/1*dSoRmZWKGw4Dlo98Cx1d-Q.png" /></figure><p>在 iPhone 上點選 設定&gt;一般&gt;裝置管理，選擇信任開發者即可執行 App</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qGe0CIR7_kVEMCXrE3u-Wg.jpeg" /></figure><p>安裝完畢！</p><ul><li><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%E6%95%99%E5%AE%A4/%E5%BE%9E-xcode-%E5%B0%87-app-%E5%AE%89%E8%A3%9D%E5%88%B0-iphone-86b7c0a5d75e">從 Xcode 將 App 安裝到 iPhone</a></li><li><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-xcode-8-%E5%B0%87app%E5%AE%89%E8%A3%9D%E5%88%B0-iphone-%E7%9A%84%E5%B0%8F%E5%B0%8F2%E5%80%8B%E6%AD%A5%E9%A9%9F-39f7b81b69a6">從 Xcode 將 App 安裝到 iPhone</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf5f56c0f537" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/5-%E5%B0%87-app-%E5%BE%9E-xcode-%E4%B8%8A%E5%AE%89%E8%A3%9D%E5%88%B0-iphone-bf5f56c0f537">#5 將 App 從 Xcode 上安裝到 iPhone</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[#4-2 研究文字UI元件 lable TextField TextView]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/4-2-%E7%A0%94%E7%A9%B6%E6%96%87%E5%AD%97ui%E5%85%83%E4%BB%B6-lable-textfield-textview-c24baf7f73c5?source=rss-51ac2e49edd2------2</link>
            <guid isPermaLink="false">https://medium.com/p/c24baf7f73c5</guid>
            <category><![CDATA[ui]]></category>
            <dc:creator><![CDATA[楊子弘]]></dc:creator>
            <pubDate>Sun, 11 Jul 2021 09:19:49 GMT</pubDate>
            <atom:updated>2021-07-11T14:23:20.285Z</atom:updated>
            <content:encoded><![CDATA[<h3>#4-2 研究文字相關UI元件 lable TextField TextView</h3><p>label</p><p>使用場景：輸入純文字 （可多行）</p><p>Line Breaks</p><p>當文字內容超出文字框大小，無法顯示全文時的裁切方式</p><p>Autoshrink</p><p>當文字內容超過文字框大小，無法顯示全文時該如何縮放</p><p>Shadow</p><p>設定文字的陰影</p><p>Apple 官方的 Human Interface Guidelines 對於 Label 的說明</p><p><a href="https://developer.apple.com/design/human-interface-guidelines/ios/controls/labels/">Labels - Controls - iOS - Human Interface Guidelines - Apple Developer</a></p><p>TextField</p><p>使用場景：輸入單行文字（表單、帳號密碼等資訊）</p><p>Placeholder</p><p>填寫表單前顯示的提示字（輸入內容後消失）</p><p>Border Style</p><p>邊框風格選擇</p><p>Clear Button</p><p>清除鈕（開啟 Simulator 後才會顯示）</p><p>Min Font Size &amp; Adjust to Fit</p><p>輸入文字過長時，將調整字體大小至設定的最小尺寸<br>設定比預設小且勾選 Adjust to Fit 才會作用</p><p>Text Input Traits</p><p>Content type</p><p>設定輸入內容類型（如電話號碼、郵遞區號）<br>系統可以依照設定的內容，讓使用者自動代入個人資料，提升使用者體驗</p><p>Capitalization</p><p>設定輸入內容預設顯示大小寫，鍵盤會跟著設定變化</p><p>Keyboard Type</p><p>設定出現的鍵盤種類<br>設定的好可以提升使用者體驗不只一個檔次，是把細節做好的關鍵</p><p>Keyboard look</p><p>設定鍵盤外觀（深色、淺色、預設模式）</p><p>Return Key</p><p>設定 Return Key 的文字</p><p>Auto-enable Return Key</p><p>使用者輸入文字後才可按下Return Key，算是一種防呆</p><p>Secure Text Entry</p><p>保護輸入的資料文字，常用於密碼</p><p>Apple 官方的 Human Interface Guidelines 對於 TextField 的說明</p><p><a href="https://developer.apple.com/design/human-interface-guidelines/ios/controls/text-fields/">Text Fields - Controls - iOS - Human Interface Guidelines - Apple Developer</a></p><p>TextView</p><p>輸入可捲動的多行文字，可應用於純文字或是表單<br>可置入連結、網址、地圖等</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*mmzg4zL1BiqpZD7x5K2a0A.png" /></figure><p>Apple 官方的 Human Interface Guidelines 對於 TextView 的說明</p><p><a href="https://developer.apple.com/design/human-interface-guidelines/ios/views/text-views/">Text Views - Views - iOS - Human Interface Guidelines - Apple Developer</a></p><p>參考資料</p><ul><li><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%E6%95%99%E5%AE%A4/xcode-%E7%9A%84%E5%90%84%E7%A8%AE-ui-%E5%85%83%E4%BB%B6%E7%A0%94%E7%A9%B6%E7%AD%86%E8%A8%98-%E4%B8%8B%E7%AF%87-600ccb7b31e0">Xcode 的各種 UI 元件研究筆記（下篇）</a></li><li><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-uitextcontenttype-%E9%A1%AF%E7%A4%BA%E4%BD%BF%E7%94%A8%E8%80%85%E7%9A%84%E9%9B%BB%E8%A9%B1%E5%92%8C-email-928cc19de1e1">利用 UITextContentType 顯示使用者的電話和 email</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c24baf7f73c5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/4-2-%E7%A0%94%E7%A9%B6%E6%96%87%E5%AD%97ui%E5%85%83%E4%BB%B6-lable-textfield-textview-c24baf7f73c5">#4-2 研究文字UI元件 lable TextField TextView</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[#4-1 研究各項UI元件 Segmented Control、Slider、Switch、Activity Indicator View、Progress View、Page…]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/4-%E7%A0%94%E7%A9%B6%E5%90%84%E9%A0%85ui%E5%85%83%E4%BB%B6-4e19786559fa?source=rss-51ac2e49edd2------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e19786559fa</guid>
            <category><![CDATA[ui-component]]></category>
            <dc:creator><![CDATA[楊子弘]]></dc:creator>
            <pubDate>Sun, 11 Jul 2021 07:49:56 GMT</pubDate>
            <atom:updated>2021-07-11T09:32:45.778Z</atom:updated>
            <content:encoded><![CDATA[<h3>#4-1 研究各項UI元件 Segmented Control、Slider、Switch、Activity Indicator View、Progress View、Page Control、Visual Effect View with Blur、Date Picker</h3><p>Segmented Control</p><p>Segments 可設定多個可選擇的欄位，不可小於2</p><p>Selected Tint 欄位被選擇時的顏色</p><p>Segment 選擇目標欄位進行設定</p><p>Title 設定欄位文字</p><p>Image 設定欄位圖片</p><p><strong>※</strong>每個欄位只能選擇顯示文字或圖片，Title、Image不可共存</p><p>Slider</p><p>Value 當前值的位子百分比</p><p>Minimum 最小值</p><p>Maximum 最大值</p><p>Min Image 最小值處（左側）圖標</p><p>Max Image 最大值處（右側）圖標</p><p>Min track 當前值與最小值之間顏色</p><p>Max track 當前值與最大值之間顏色</p><p>Thunb Tint 圓點顏色</p><p>Switch</p><p>State 開關狀態</p><p>On Tint 開啟時顯示顏色</p><p>Thumb Tint圓點顏色</p><p>Activity Indicator View</p><p>Style 過渡動畫風格</p><p>Color 過渡動畫顏色</p><p>Animating 選擇是否開啟動畫特效</p><p>Hides When Stopped 選擇是否在動畫結束時隱藏</p><p>Progress View</p><p>Style 風格選擇</p><p>Progress 當前值</p><p>Progress Tint 進度條顏色</p><p>Track Tint 剩餘進度顏色</p><p>Progress Image 進度條背景圖</p><p>Track Image 剩餘進度背景圖</p><p>Page Control</p><p># or Pages 總共有幾個點點（頁數）</p><p>Current 當前點的 Index 值</p><p>Hides for Singel Page 當只有一頁時不顯示</p><p>Tint Color 當前值以外的顏色</p><p>Current Page 當前值的顏色</p><p>Visual Effect View With Blur</p><p>模糊風格的View</p><p>Date Picker</p><p>Preferred Style 選擇樣式</p><p>Mode 選擇以哪種模式顯示，也快用來計時</p><p>Locale 選擇以哪國的時間格式顯示</p><p>Interval 間隔幾分鐘</p><p>Date 設定預設時間</p><p>Minimum Date 設定最早日期</p><p>Maximum Date 設定最晚日期</p><p>參考資料</p><ul><li><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%E6%95%99%E5%AE%A4/%E7%A0%94%E7%A9%B6%E4%BB%A5%E4%B8%8B-ui-%E5%85%83%E4%BB%B6-segmented-control-slider-switch-activity-indicator-view-progress-view-page-9462279a44fc">研究以下 UI 元件: Segmented Control，Slider，Switch，Activity Indicator View，Progress View，Page…</a></li><li><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%E6%95%99%E5%AE%A4/xcode-%E7%9A%84%E5%90%84%E7%A8%AE-ui-%E5%85%83%E4%BB%B6%E7%A0%94%E7%A9%B6%E7%AD%86%E8%A8%98-%E4%B8%8A%E7%AF%87-b3e043f1d008">Xcode 的各種 UI 元件研究筆記（上篇）</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e19786559fa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/4-%E7%A0%94%E7%A9%B6%E5%90%84%E9%A0%85ui%E5%85%83%E4%BB%B6-4e19786559fa">#4-1 研究各項UI元件 Segmented Control、Slider、Switch、Activity Indicator View、Progress View、Page…</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[#3 製作App Icon]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/3-%E8%A3%BD%E4%BD%9Capp-icon-cf296c728e17?source=rss-51ac2e49edd2------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf296c728e17</guid>
            <category><![CDATA[icons]]></category>
            <category><![CDATA[xcode]]></category>
            <dc:creator><![CDATA[楊子弘]]></dc:creator>
            <pubDate>Sat, 10 Jul 2021 12:44:39 GMT</pubDate>
            <atom:updated>2021-07-11T08:54:44.170Z</atom:updated>
            <content:encoded><![CDATA[<p>借助於 App Icon Generator， 可以實現一張圖片自動生成各種尺寸以應對各種不同的使用場景，只需選擇需要對應的的裝置即可，相當方便</p><p><a href="https://appicon.co/">App Icon Generator</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PSkkvHKRszqoB3tPJxJZww.png" /></figure><p>將生成好的Icon檔案下載並解壓縮後，取代原先的App Icon資料夾即可，實際應用時需注意正方形圖片效果會較佳</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2qXF_spG5A8-5N_Hp9tpjA.png" /></figure><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-app-icon-generator-%E7%94%A2%E7%94%9F-ios-app-icon-402b0d2cd2e6">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-app-icon-generator-%E7%94%A2%E7%94%9F-ios-app-icon-402b0d2cd2e6</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf296c728e17" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/3-%E8%A3%BD%E4%BD%9Capp-icon-cf296c728e17">#3 製作App Icon</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[#2 使用Marvel app 製作簡易prototype app]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/2-%E4%BD%BF%E7%94%A8marvel-app-%E8%A3%BD%E4%BD%9C%E7%B0%A1%E6%98%93prototype-app-5ca1c1580779?source=rss-51ac2e49edd2------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ca1c1580779</guid>
            <category><![CDATA[prototype]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[prototyping]]></category>
            <dc:creator><![CDATA[楊子弘]]></dc:creator>
            <pubDate>Fri, 09 Jul 2021 13:52:01 GMT</pubDate>
            <atom:updated>2021-07-09T14:58:16.781Z</atom:updated>
            <content:encoded><![CDATA[<p>#2 使用Marvel app 製作簡易prototype app</p><p>由於沒有什麼特別的點子，一直覺得Apple 的介面很賞心悅目，於是試著效法了Apple Store App 的部分頁面，也使用了App 內的產品截圖</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fmarvelapp.com%2Fprototype%2F2ae01aag%3Femb%3D1%26&amp;display_name=MarvelApp&amp;url=https%3A%2F%2Fmarvelapp.com%2Fprototype%2F2ae01aag&amp;image=https%3A%2F%2Fmarvel-live.freetls.fastly.net%2Fserve%2F2021%2F7%2F2c859a9a1204eeda707dcc2d2441b08.png%3Fquality%3D95%26fake%3D.png&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=marvelapp" width="1125" height="2460" frameborder="0" scrolling="no"><a href="https://medium.com/media/401191bd29906fdd46518ecb897adb11/href">https://medium.com/media/401191bd29906fdd46518ecb897adb11/href</a></iframe><p>當中遇到比較大的困難是忘記預留瀏海的空間，導致原本設計好的排版需要重新調整</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*cwSsVdTHVpT6YirubC3E1g.png" /></figure><p>也因為對Marvel App的使用較不熟悉，花了不少時間摸索，也大量參考學姊的教學文，完整的介紹讓我少走了不少彎路</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%E6%95%99%E5%AE%A4/%E7%94%A8marvel-app%E8%A3%BD%E4%BD%9Cprototype-app-%E4%B8%8D%E5%B0%88%E6%A5%AD%E5%AE%8C%E6%95%B4%E4%BB%8B%E7%B4%B9-1ac08531c01e">用Marvel app製作prototype app｜不專業完整介紹</a></p><p>Marvel App</p><p><a href="https://marvelapp.com/apps/">Apps | Marvel</a></p><p>操作教學</p><p><a href="https://help.marvelapp.com/hc/en-us/articles/360002536038-A-guide-to-creating-your-first-prototype?fbclid=IwAR1pmcxUmxO3RE0XvZekKVjp3SXfl52trTxwuml6G0st4e1mCbOwKXd9HDY">A guide to creating your first prototype</a></p><p>我很喜歡一句話：Fake it till you make it. <br>在還不能獨當一面的時候，先站在巨人的肩膀上，『抄襲』高手們的做法，總有一天希望也能靠自已達到一樣的level！</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ca1c1580779" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/2-%E4%BD%BF%E7%94%A8marvel-app-%E8%A3%BD%E4%BD%9C%E7%B0%A1%E6%98%93prototype-app-5ca1c1580779">#2 使用Marvel app 製作簡易prototype app</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[#1 將作品錄製為gif並將專案上傳至Github]]></title>
            <link>https://medium.com/peter-pan-swift-ios-class/1-%E5%B0%87%E4%BD%9C%E5%93%81%E9%8C%84%E8%A3%BD%E7%82%BAgif%E4%B8%A6%E5%B0%87%E5%B0%88%E6%A1%88%E4%B8%8A%E5%82%B3%E8%87%B3github-4913ce1bbde0?source=rss-51ac2e49edd2------2</link>
            <guid isPermaLink="false">https://medium.com/p/4913ce1bbde0</guid>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[楊子弘]]></dc:creator>
            <pubDate>Thu, 08 Jul 2021 05:44:54 GMT</pubDate>
            <atom:updated>2022-11-12T05:09:54.353Z</atom:updated>
            <content:encoded><![CDATA[<p>#1 將作品錄製為gif並將專案上傳至Github</p><p>整體演示如下</p><p>主要功能有：在text view上加入link以及點選button之後跳轉至下一頁面。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*I1Oa2aE55dlzAAkXr_4S-w.gif" /></figure><p>使用Xcode內建錄製功能錄製gif</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%E6%95%99%E5%AE%A4/%E9%8C%84%E8%A3%BD%E5%88%86%E4%BA%AB%E7%B2%BE%E9%87%87%E7%9A%84ios-app%E6%93%8D%E4%BD%9C%E5%BD%B1%E7%89%87%E5%92%8Cgif-ffae55ffdbe1">錄製分享精采的 iOS App 操作影片</a></p><p>將專案上傳至Github</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%A6%82%E4%BD%95%E5%B0%87-ios-app-%E4%BD%9C%E6%A5%AD%E4%B8%8A%E5%82%B3%E5%88%B0-github-135416069dfd">如何將 iOS App 作業上傳到 GitHub</a></p><p>在新版本的Xcode，會發現找不到Xcode&gt;Preferences了，但仍然可以使用快捷鍵cmd + , 實現找到設定帳號的選單，只是改成Settings，快捷鍵也一樣</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*4lK9OW1Sa4QlT1KZIOEidA.png" /></figure><p>Github</p><p><a href="https://github.com/purplered0521/Demo2022">GitHub - purplered0521/Demo2022</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4913ce1bbde0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peter-pan-swift-ios-class/1-%E5%B0%87%E4%BD%9C%E5%93%81%E9%8C%84%E8%A3%BD%E7%82%BAgif%E4%B8%A6%E5%B0%87%E5%B0%88%E6%A1%88%E4%B8%8A%E5%82%B3%E8%87%B3github-4913ce1bbde0">#1 將作品錄製為gif並將專案上傳至Github</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>