<?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 Esperanza Chen on Medium]]></title>
        <description><![CDATA[Stories by Esperanza Chen on Medium]]></description>
        <link>https://medium.com/@v.esperanzac113?source=rss-d605575235b7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*gDSrXbPi1HMhmuGZTYeIpw@2x.jpeg</url>
            <title>Stories by Esperanza Chen on Medium</title>
            <link>https://medium.com/@v.esperanzac113?source=rss-d605575235b7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 14:00:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@v.esperanzac113/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[Swift Learning — Voiceover: Read the Spelling Words While Typing on the Keyboard]]></title>
            <link>https://medium.com/@v.esperanzac113/swift-learning-voiceover-read-the-spelling-words-while-typing-on-the-keyboard-c334ba10d6c9?source=rss-d605575235b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/c334ba10d6c9</guid>
            <dc:creator><![CDATA[Esperanza Chen]]></dc:creator>
            <pubDate>Sun, 04 Jun 2023 17:40:48 GMT</pubDate>
            <atom:updated>2023-06-04T17:40:48.639Z</atom:updated>
            <content:encoded><![CDATA[<h3>Swift Learning — Voiceover: Read the Spelling Words While Typing on the Keyboard</h3><p>June, 3rd, 2023</p><p>At the end of our last sprint, we left a few tickets related to the accessibility of our application. <strong>One of the tickets involved making VoiceOver announce the typeahead results. </strong>Although I haven’t found a good solution for this yet, <strong>I came across something different while doing my research.</strong></p><p>Before testing my code, I opened the Notes app, the original Apple Notes app, to see how VoiceOver worked when typing on the keyboard. I discovered that it would announce the characters I typed, such as A-P-P-L-E, one word at a time. However, if users wanted to know the auto-suggestion words (the words that appeared at the top of the keyboard), they would need to tap on them.</p><p>What if users want to know what they’re typing on the screen? We can customize this setting using the following code:</p><pre>func keyPressed() {<br>let inputText = textField.text<br>UIAccessibility.post(notification: .announcement, argument: inputText)<br>}</pre><p><strong>UIAccessibility.post(notification: .announcement, argument: inputText)</strong></p><p>// Add this line to make VoiceOver announce your words, such as A, AP, APP, APPL, APPLE. However, please note that it will increase the number of VoiceOver announcements, which might sometimes be annoying or uncomfortable for users.</p><p>I hope this article is helpful for you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c334ba10d6c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I have never thought that I would have the chance to visit Google headquarters in my life.]]></title>
            <link>https://medium.com/@v.esperanzac113/i-have-never-thought-that-i-would-have-the-chance-to-visit-google-headquarters-in-my-life-e37a51faa8b2?source=rss-d605575235b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/e37a51faa8b2</guid>
            <dc:creator><![CDATA[Esperanza Chen]]></dc:creator>
            <pubDate>Tue, 30 May 2023 04:16:24 GMT</pubDate>
            <atom:updated>2023-05-30T04:16:24.014Z</atom:updated>
            <content:encoded><![CDATA[<p>May 24-May 28, 2023 trip to San Francisco and Bay Area</p><p>As a developer, I’m sure you may have the similar dream as mine to work in the Bay Area. The Bay Area has numerous big tech companies, and we often hear about them through LinkedIn posts or news coverage. Thanks to my friend, I had the opportunity to see what it’s like to be a developer in San Francisco and the Bay Area.</p><p><strong>Although Canada is geographically close to America, the lifestyle and work culture in these two countries are quite different. In Canada, people tend to prioritize work-life balance, and the competitive atmosphere is less intense compared to America. When you visit the United States, you can easily understand what I’m trying to convey.</strong> <strong>During my time in San Francisco, I could feel the hustle and bustle of everyone’s work life, and it became clear that hard work and dedication are necessary to achieve your desired salary and job.</strong></p><p>Because my friend works at Google, I could have a chance to visit the company and experience a day as a Google employee. Google is renowned for its employee benefits, such as providing various food options for breakfast, lunch, and dinner, as well as a wide selection of snacks and beverages in their cafeteria.</p><p>After enjoying breakfast on the day I visited the Google, we rode Google Bikes to my friend’s office building, where we found a meeting room and worked different work things. <strong>During our work free time, we discussed LeetCode problems and utilized Google’s whiteboard to brainstorm ideas and solutions. It’s hard to put into words how excited I was at that moment, as it felt like I was being interviewed by a Google manager at Google itself.</strong></p><p>Since my friend’s office was not located in the headquarters area, he drove us to the headquarters. We had a delightful lunch at one of their Mexican restaurants and explored various places and buildings. <strong>The working environment at Google had a great and relaxed vibe. </strong>However, to become a Googler, we must study hard and make significant efforts to have a chance at making our dreams come true.</p><p><strong>I am incredibly grateful to my friend for allowing me to have this glimpse into the world of Google. Not only did he share his work environment with me, but he also provided valuable insights into living in San Francisco and working in the Bay Area, offering me advice along the way. His guidance and support have given me a tremendous amount of inspiration and energy that I will never forget. I aspire to become an exceptional developer like him.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BqbpTW8fajMjbPB_OYDiIw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZBHm0wXuI-AB-KmkZafu4Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TibOX5-1kwOT7Lxm3-66Qw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YilPLLTCjKQR7JhGR_cDQw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W6PjdpmD2q_y2IV4RszbjA.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e37a51faa8b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why you want to be a developer]]></title>
            <link>https://medium.com/@v.esperanzac113/why-you-want-to-be-a-developer-c420910c63af?source=rss-d605575235b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/c420910c63af</guid>
            <dc:creator><![CDATA[Esperanza Chen]]></dc:creator>
            <pubDate>Tue, 23 May 2023 06:23:51 GMT</pubDate>
            <atom:updated>2023-05-24T13:24:54.728Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why do you want to be a developer</h3><p>May 22, 2023</p><p><strong>Have you ever wondered why you want to be a developer? </strong>Is it solely because of the potential financial rewards and a better life?</p><p><strong>As someone who has been working as a developer for a few months now, I have discovered several key points that make me believe I am suited for this role.</strong> Last month, I came across a YouTube video where a YouTuber discussed her job and why she decided to become a developer. One particular statement she made resonated deeply with me. She said, “<strong>If you are a creative person who dislikes working in a rigid pattern, becoming a developer might be a great choice for you. In solving technical problems, there isn’t just one way or one answer. You have the freedom to use your creativity and come up with your own solutions to achieve the same goal — resolving the problem.</strong>”</p><p>Reflecting on my previous work experience, when I was a manager at a Japanese company, I had to adhere to numerous standardized rules and convey them to my employees. <em>Even if I had different ideas on a particular topic, it was challenging to voice them or discuss potential changes. </em>However, as a developer, I can follow my intuition and thoughts to craft solutions to problems. <strong>I enjoy the process of investigating the root cause of a bug and devising a solution to fix it. Each time I successfully resolve a bug and test the solution, I experience a profound sense of accomplishment. I thrive on that feeling in my work.</strong></p><p><strong>Another reason I aspire to be a developer is the opportunity to write clean, understandable code and create reusable functions or views.</strong> In my daily life, I appreciate working, eating, and living in a tidy environment. I firmly believe that if my surroundings are clean and organized, there are no distractions hindering my focus on work. Consequently, I consistently maintain a clean bed, desk, and everything related to my workspace. <strong>Due to this inclination, I find immense satisfaction in tidying up messy code that resembles spaghetti code. Of course, I prioritize tasks such as creating views or fixing bugs, and cleaning up code is not my primary responsibility. Only when I have completed my assigned tasks and have spare time, I seek opportunities to create reusable functions or views that can benefit other developers or views.</strong></p><p>As of now, I am still exploring the reasons why I enjoy this developer job. <strong>At different stages, my thoughts and feelings may evolve. </strong>However, one thing remains certain: <strong>I genuinely appreciate what I am currently doing. </strong><em>Life is a long journey, and sometimes it doesn’t follow a linear path. It presents us with various challenges and exciting opportunities to explore. When I was a child or even a student in university, I never anticipated becoming one of the developers in the world. It just goes to show that we can never predict what the future holds.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c420910c63af" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Swift UIKit learning-viewDidLoad/viewWillAppear/viewWillDisappear methods]]></title>
            <link>https://medium.com/@v.esperanzac113/swift-uikit-learning-viewdidload-viewwillappear-viewwilldisappear-methods-d6ed23dfe880?source=rss-d605575235b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6ed23dfe880</guid>
            <dc:creator><![CDATA[Esperanza Chen]]></dc:creator>
            <pubDate>Mon, 22 May 2023 07:49:45 GMT</pubDate>
            <atom:updated>2023-05-22T07:50:22.788Z</atom:updated>
            <content:encoded><![CDATA[<p>May 21, 2023</p><p>While conducting a code review of my previous project, which utilized the UIKit framework, I took the opportunity to revisit some concepts that I didn’t fully grasp before. Today, I would like to share insights on three commonly used lifecycle methods in iOS view controllers. These methods are invoked at various stages during the lifecycle of a view controller, allowing for precise control and customization of its behavior.</p><h3>1. viewDidLoad:</h3><p><strong>This method is called after the view controller&#39;s view has been loaded into memory.</strong> It<strong> is called only once</strong> during the view controller&#39;s lifetime, typically when the view controller is first instantiated. It is commonly <strong>used for initial setup and one-time configurations of the view and its subviews.</strong> At this point,<strong> the view has been loaded, but it may not have appeared on the screen yet.</strong></p><h3>2. viewWillAppear:</h3><p>This method <strong>is called just before the view is about to appear on the screen. </strong>It<strong> is called every time the view is going to be presented,</strong> such as when it&#39;s pushed onto a navigation stack or presented modally. It allows you to perform any necessary tasks or updates to the view or its data before it becomes visible to the user. <strong>This method is often used for refreshing data, updating UI elements, or setting initial states.</strong></p><h3>3. viewWillDisappear:</h3><p>This method <strong>is called when the view is about to be removed or disappear from the screen.</strong> It is called <strong>when the view is being dismissed, popped from a navigation stack, or another view controller is about to be presented on top of it.</strong> It <strong>provides an opportunity to save any unsaved data, stop ongoing tasks, or perform any cleanup operations before the view disappears.</strong> This method <strong>is commonly used for saving state, stopping animations, or releasing resources.</strong></p><p>In summary, viewDidLoad is called once when the view is loaded into memory, viewWillAppear is called just before the view appears on the screen, and viewWillDisappear is called before the view is removed or disappears from the screen. These methods serve different purposes and allow you to perform specific tasks at different stages of the view controller&#39;s lifecycle.</p><p>Notes: learning from ChatGPT.</p><p>I hope this article is helpful for you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6ed23dfe880" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Recent days in the middle of May]]></title>
            <link>https://medium.com/@v.esperanzac113/recent-days-in-the-middle-of-may-11c155989a45?source=rss-d605575235b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/11c155989a45</guid>
            <dc:creator><![CDATA[Esperanza Chen]]></dc:creator>
            <pubDate>Sun, 21 May 2023 07:35:51 GMT</pubDate>
            <atom:updated>2023-05-21T07:36:16.201Z</atom:updated>
            <content:encoded><![CDATA[<p>May 20, 2023</p><p>It’s been a while since I last wrote in my diary.</p><p>Recently, Vancouver has been blessed with good weather for a week, and I’ve had multiple enjoyable events to make the most of this pleasant mood. <strong>One of the highlights was attending a concert by Li-an Wei, a Taiwanese singer.</strong> It was so exciting to listen to music from one of my favorite artists. The concert attracted a large crowd, mostly Mandarin-speaking attendees. <strong>Through this event, I had the opportunity to meet new people beyond my immediate circle of friends.</strong> After the concert, my friend, two other friends, and I went to a bar to have some beers and grab late-night snacks. <strong>It was truly a wonderful day, reminiscent of being back home in Taiwan.</strong></p><p>On May 18, I had a regular appointment with my therapist, and my plan was to go home and study afterwards. <strong>However, the weather was exceptionally nice, and I didn’t want to miss the chance to go out and enjoy it.</strong> Originally, I intended to visit English Bay Beach, a place I had been to a few times and considered my favorite beach spot in Vancouver. <strong>But in the end, I decided to explore a different yet amazing beach spot: Kitsilano Beach.</strong></p><p>Compared to English Bay, Kitsilano Beach had a spacious and clean park adjacent to the beach. People were singing songs with their guitars, having picnics with friends, or playing with their dogs. <strong>The green trees looked even more beautiful and vibrant under the stunning sunshine. </strong>Additionally, there were more events taking place at Kitsilano Beach, such as beach volleyball and various beach activities. In contrast, English Bay Beach was mostly known for picnics and food gatherings.</p><p><strong>Two other great things about Kitsilano Beach were: 1. The presence of several good stores within two blocks of the beach. Being located outside downtown, the area had a more comfortable and cozy atmosphere. 2. There were numerous restaurants near the beach offering a variety of cuisines, including Japanese, Thai, American, and more. All the restaurants had a clean and pleasant ambiance. I highly recommend this beach to anyone living in Vancouver or planning to visit. I’ve already made a promise to myself that I will come back here soon</strong>.</p><p>Now, let’s take a look at some beautiful photos I took at Kitsilano Beach.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lRfVZGpQjkYOLwiVm_YgIg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bm1TIkeo6VBWbN3h6xMG6w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YaDgVxzikL31nQgR5CWPKg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uezplYbrKAxaHUs1IAjAKg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KDbWIZ1qK3NRP5QGmOvZnA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lcvHIw1X_OLF-rLN-b_BVQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E-T_Rqa0hdbbCUJWn_QBpA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4qYBppwRolpHJucFc3OSlQ.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11c155989a45" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Swift UIKit view controller — UIHostingController]]></title>
            <link>https://medium.com/@v.esperanzac113/swift-uikit-view-controller-uihostingcontroller-97e240886fd8?source=rss-d605575235b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/97e240886fd8</guid>
            <dc:creator><![CDATA[Esperanza Chen]]></dc:creator>
            <pubDate>Tue, 16 May 2023 06:07:33 GMT</pubDate>
            <atom:updated>2023-05-16T06:07:33.388Z</atom:updated>
            <content:encoded><![CDATA[<h3>Swift UIKit view controller — UIHostingController</h3><p>May 15, 2023</p><p>As a developer, <em>I can completely understand why people always say that you learn more from your work or any practical experience.</em> Last week, I had a task to complete in this sprint which required me to present a view, whether it was built in the UIKit or SwiftUI framework, from one of our UIViewController files. It’s common for companies to implement code from one framework to another framework. Initially, I planned to create another viewController and add the code to show a new view.</p><pre> let newViewController = NewViewController()<br> navigationController?.pushViewController(newViewController, animated: true)</pre><p>Consider the further maintenance of our code and implementation of more features, I think it would be better for me to figure out how to present a SwiftUI view from a UIViewController.</p><h3><strong>UIHostingController</strong></h3><p><strong>UIHostingController is a UIKit view controller that hosts a SwiftUI view hierarchy. It allows you to use SwiftUI views in your existing UIKit-based app by embedding them in a view controller. The UIHostingController takes care of the necessary setup and teardown to make the SwiftUI view hierarchy work seamlessly within the UIKit view hierarchy.</strong></p><p><strong>To use UIHostingController, you need to create a SwiftUI view and then instantiate a UIHostingController object with that view. You can then add the UIHostingController as a child view controller to your existing view controller hierarchy, and the SwiftUI view will appear as a subview of the UIHostingController’s view.</strong></p><p>(explanation by ChatGPT)</p><p>After using UIHostingController, it will present your SwiftUI view successfully.</p><pre>let detailView = DetailView()<br>let hostingController = UIHostingController(rootView: detailView)<br>hostingController.modalPresentationStyle = .fullScreen<br>present(hostingController, animated: true, completion: nil)</pre><p><strong>Notes:</strong></p><p><strong>If you are presenting a SwiftUI view using UIHostingController, the navigation bar will not be automatically displayed. To show the back button on the navigation bar, you need to embed the view in a NavigationView.</strong></p><p>Since my goal is to create a view that is similar to using a navigation view and navigation link with the navigation title and navigationBackBarButton displayed on the top left of the view, I will need to embed the view in a NavigationView and pass it to the rootView parameter in UIHostingController.</p><p>The code will look like the following:</p><pre>let detailView = DetailView()<br>let navigationView = NavigationView { detailView }<br>let hostingController = UIHostingController(rootView: navigationView)<br>hostingController.navigationItem.title = &quot;Detail View&quot;<br>navigationController?.pushViewController(hostingController, animated: true)</pre><p>Next time, when you don’t know how to present a SwiftUI view from UIViewController, try to use UIHostingController!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97e240886fd8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Xcode 14.3 + iOS 16.0 + Cocoapods problems]]></title>
            <link>https://medium.com/@v.esperanzac113/xcode-ios-system-cocoapods-problems-eacef6c896a6?source=rss-d605575235b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/eacef6c896a6</guid>
            <dc:creator><![CDATA[Esperanza Chen]]></dc:creator>
            <pubDate>Sun, 14 May 2023 08:14:03 GMT</pubDate>
            <atom:updated>2023-05-14T08:23:07.512Z</atom:updated>
            <content:encoded><![CDATA[<p>May 14, 2023</p><p>If you haven’t updated your Xcode to version 14.3 yet, I would recommend waiting until a later time. Last month, when I tried to run my personal iOS project on my iPhone 14 Pro with iOS version 16.0 or above, I discovered that it caused a conflict between Xcode and my iPhone.</p><h3><strong>Background:</strong></h3><p>Mac system: MacOS Ventura 13.3.1</p><p>Previous Xcode version: 14.2.1 ; Have already updated to 14.3</p><p>iPhone: iOS version 16.4.1</p><p>Cocoapods version: 1.12.1</p><h3><strong>Problems:</strong></h3><h4><strong>1. Xcode has a conflict with iOS 16.0 or above system</strong></h4><p>I updated my Xcode version because I wanted to run my app on my iPhone 14 Pro. The new version 14.3 supports iOS 16, iPadOS 16, macOS Monterey 12.3, tvOS 16, and watchOS 9. Without this update, Xcode would give an error and the app would not build successfully.</p><p>After updating to the new version, I was able to successfully run my app on my iPhone 14 Pro.</p><p>✅ Problem solved.</p><p>❗️Problem: Xcode 14.2 can not support iOS 16.0 system</p><h3><strong>2. While using Xcode 14.3 version, you will find a conflict with Cocoapods</strong></h3><p>Earlier today, I wanted to create an iOS project with Firebase, but I was unable to run the pod init command in my terminal. After some research on Google, ChatGPT, and Reddit, I discovered that the problem was a version conflict. CocoaPods had not been updated to a new version that supports Xcode 14.3, so I ran into the same issue as others who had updated their Xcode.</p><p>Thankfully, I found a solution on a Chinese website where developers share their problems and solutions. To fix the issue, you need to <strong>open your Xcode project, select your target project, and look at the ‘Identity and Type’ column on the right-hand side. There, you can find the ‘Project Format’ field and re-select Xcode 13.0 compatible. After doing this, I was able to run </strong><strong>pod init again in my terminal, and the Podfile was located in my folder.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*LYNplGlJMqqLA9ycnWbggg.png" /></figure><p>✅ Problem solved.</p><p>❗️Problem: Xcode 14.3 is not compatiable with Cocoapods.</p><p>I hope this article is helpful for you, especially when you meet the same issue as mine listed above.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eacef6c896a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SwiftUI Learning — Toggle View]]></title>
            <link>https://medium.com/@v.esperanzac113/swiftui-learning-toggle-view-5f343bf8cc4f?source=rss-d605575235b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f343bf8cc4f</guid>
            <dc:creator><![CDATA[Esperanza Chen]]></dc:creator>
            <pubDate>Sat, 13 May 2023 07:22:16 GMT</pubDate>
            <atom:updated>2023-05-13T07:59:59.122Z</atom:updated>
            <content:encoded><![CDATA[<h3>SwiftUI Learning — Toggle View</h3><p>May 12, 2023</p><p>When I first learned about toggles in development, it was while working on a Swift project called Light. If you’re familiar with Apple’s Develop in Swift Fundamentals book, you may already have an idea of what I’m referring to.</p><p>The toggle method is used to determine whether a light is on or off and make the necessary changes to the view. Since we use this concept frequently in our company’s projects, I wanted to revisit what I’ve learned about toggles and create a Toggle view using SwiftUI.</p><p><strong>Toggle is a Boolean value that can be either true or false, and it can toggle between two states. In SwiftUI, when we want to create a Toggle view object, we have to provide values for its two properties — label and binding to a Boolean value.</strong></p><p><strong>Here is an example of how to create a Toggle view and its preview:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gywNcM8wpZbJbTi7W_6sBA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XA_Sz26NZFrHawH4wb4UXw.png" /></figure><pre>import SwiftUI<br><br>struct ContentView: View {<br>  <br>  @State private var isVibrateOnRing = false<br>  <br>    var body: some View {<br>        VStack {<br>          Text(&quot;Toggle Example&quot;)<br>          Toggle(isOn: $isVibrateOnRing) {<br>            Text(&quot;Vibrate On Ring&quot;)<br>          }.padding(16)<br>        }<br>    }<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*rkLmekVasawlfv1JQJ64_g.png" /></figure><p>Explanation:</p><p>To create a simple toggle view:</p><ol><li>Create a variable with a Boolean value and annotate it with the @State property wrapper. This wrapper signifies that the variable is a piece of data that the view code relies upon to display the UI, and it allows you to change the data it stores.</li><li>Type the Toggle keyword, and you will see that there are several initializer methods you can use. For this example, choose Toggle(isOn: Binding&lt;Bool&gt;, label: () -&gt; View).</li><li>Since we have to pass a binding Boolean to the method, we can add the $ symbol before our Boolean variable.</li><li>In the label property, you can display a text label for the toggle.</li><li>Try to change label to create your own Toggle view.</li></ol><p>I hope this is helpful for you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f343bf8cc4f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Finally, we have sunny days in Vancouver]]></title>
            <link>https://medium.com/@v.esperanzac113/finally-we-have-sunny-days-in-vancouver-941cdb0e291a?source=rss-d605575235b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/941cdb0e291a</guid>
            <dc:creator><![CDATA[Esperanza Chen]]></dc:creator>
            <pubDate>Thu, 11 May 2023 05:22:07 GMT</pubDate>
            <atom:updated>2023-05-11T05:22:07.761Z</atom:updated>
            <content:encoded><![CDATA[<p>May 10, 2023</p><p>It’s been a while since I last saw sunny days for a week in Vancouver. <strong>When you live in Canada, you can’t rely solely on your Weather app to know whether today will be sunny or not, as the weather is very dynamic here.</strong> Sometimes, you can wear a T-shirt one day and need to wear your winter jacket the next day in the same week. However, <strong>the tricky thing is that if the weather forecast shows that it will rain, you can be 99% sure it will rain. That’s why people call Vancouver “Raincouver,” as it rains a lot, just like London and Seattle, which are famous for their rainy seasons.</strong></p><p>Compared to my home country,<strong> Taiwan,</strong> where the majority of <strong>people prefer the fall or winter season because it’s very humid and sweaty in summer. </strong>You will cherish all the summer moments in Canada because after 3 or 4 months, the weather will become colder. Therefore, many people who have lived in Vancouver for several years will tell you that if you see that it’s a sunny day, please hang out with your friends and have fun under the sunshine.</p><p>BTW, <strong>when the summer season comes, the time of sunset will be around 9 or 10 PM. That means we can enjoy much more time in this season. Because when winter comes, we can only have daytime until 4 PM. That’s one of the biggest differences between Taiwan and Canada.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=941cdb0e291a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Algorithm and Data Structure Learning]]></title>
            <link>https://medium.com/@v.esperanzac113/algorithm-and-data-structure-learning-e516cea56774?source=rss-d605575235b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/e516cea56774</guid>
            <dc:creator><![CDATA[Esperanza Chen]]></dc:creator>
            <pubDate>Mon, 08 May 2023 07:32:37 GMT</pubDate>
            <atom:updated>2023-05-08T15:14:07.006Z</atom:updated>
            <content:encoded><![CDATA[<p>May 7, 2023</p><p><strong>For job seekers in the field of software development, preparing for a technical interview on LeetCode can be a challenging and stressful experience.</strong> Recently, I have been practicing LeetCode for half a month now.</p><p>Last year, when I first resolved to start practicing it, I felt reluctant but had to do it. It was frustrating because I usually didn’t have any idea about the solutions to the problems. <strong>Unlike math, where you can learn one concept and practice more to gain knowledge, LeetCode problems require a different approach.</strong></p><p>I<strong>t is helpful to review other people’s discussions on LeetCode problems.</strong> Sometimes,<strong> if we have not used a particular approach before, we may not have any idea on how to solve the problem. However, through my practice, I have come to enjoy the process of thinking about and solving problems. Even if my solution is not always accepted, the exercise of trying to analyze and solve the problem often leads to new ideas and concepts.</strong></p><p><strong>This is definitely a big improvement for me. I feel like I’m becoming a different person with a new way of thinking. One of my developer friends pointed out that the reason for my progress is that I have started to approach technical problems with a developer’s mindset.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e516cea56774" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>