<?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 Artem Horovenko on Medium]]></title>
        <description><![CDATA[Stories by Artem Horovenko on Medium]]></description>
        <link>https://medium.com/@horovenko?source=rss-6c5242db4b15------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*d6sAuGIpOLeCnOZA8kwlIQ.png</url>
            <title>Stories by Artem Horovenko on Medium</title>
            <link>https://medium.com/@horovenko?source=rss-6c5242db4b15------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 09:24:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@horovenko/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[10 Raycast extensions to boost your digital routine.]]></title>
            <link>https://horovenko.medium.com/10-raycast-extensions-to-boost-your-digital-routine-bd9fd8622afa?source=rss-6c5242db4b15------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd9fd8622afa</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[routine]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[digital-nomads]]></category>
            <dc:creator><![CDATA[Artem Horovenko]]></dc:creator>
            <pubDate>Sat, 02 Sep 2023 14:48:34 GMT</pubDate>
            <atom:updated>2023-09-02T14:48:34.645Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YBGm4N9KSVegwFtvy86ovA.jpeg" /><figcaption>Copenhagen, Denmark. Author: me.</figcaption></figure><p>If you haven’t heard of Raycast, get ready to transform the way you tackle tasks. Imagine a tool that’s 1000 times more powerful than Apple’s Spotlight.</p><p>Raycast allows you to convert files, generate temporary emails, translate texts, play and control music, and access all the information you need (like calendars, weather, currencies) — all within your current context. Raycast puts everything at your fingertips.</p><p>Being an iOS developer, you’re facing lots of additional tasks — cleaning Xcode’s derived data, cleaning cache, working with Git, checking and writing documentation, working on design. Doing all of that is much easier with Raycast.</p><p>Without further ado, let’s begin my top 10 extensions.</p><ol><li><a href="https://www.raycast.com/HelloImSteven/sips">Image Modification</a></li></ol><p>Deal with .heic in an efficient and pro way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*cvGjAtx1qyxW0k_IHH_PmA.gif" /></figure><p>2. <a href="https://www.raycast.com/thomas/color-picker">Color Picker</a></p><p>You don’t need Figma or Sketch to pick a color. I mean, really.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*_8jlh1U5K1hRy2UFhSi2eg.gif" /></figure><p>3. <a href="https://www.raycast.com/anwarulislam/ruler">Ruler</a></p><p>Finally, a tool to measure up to Apple’s high standards.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*X6HALOlgz11_divRDmQ88w.gif" /></figure><p>4. Integrated quick calendar (built-in function)</p><p>Let’s face it, this is a killer feature for you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VQ2YIjyCUax9c75ciNJEyg.png" /></figure><p>5. <a href="https://www.raycast.com/SvenTiigi/xcode">Xcode Operations</a></p><p>Delete derived data in seconds, so you’ll see that it’s your force unwrapping that crashing the app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*29HESpge8k9XRoW2d_UCCw.png" /></figure><p>6. <a href="https://www.raycast.com/tonka3000/speedtest">Speedtest</a></p><p>Check your internet connection without seeing any speedtest.net ads.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yoLt_aVz0IoVd7_zIPWnCg.png" /></figure><p>7. <a href="https://www.raycast.com/hossammourad/raycast-system-monitor">System Monitor</a></p><p>Find that RAM stealer easily.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ALToZ4IaUCjdJIzu3iDUQg.png" /></figure><p>8. <a href="https://www.raycast.com/rolandleth/kill-process">Kill Process</a></p><p>It’s like ctrl-alt-delete, but better (cause we’re on the MacOS, remember?)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BKPT6XPHlUcuH6h30N4t3w.png" /></figure><p>9. <a href="https://www.raycast.com/mattisssa/spotify-player">Spotify Player</a> and <a href="https://www.raycast.com/fedevitaledev/music">Apple Music</a></p><p>Let’s agree that media control buttons never work when you need them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tf9HPFLJJ-zOW_cE5q9lHg.png" /><figcaption>Apple Music Player controls</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9tOwRl2Rrf81TZl1ZYHR2A.png" /><figcaption>Spotify Player controls</figcaption></figure><p>10. <a href="https://www.raycast.com/sjdonado/idonthavespotify">I Don’t Have Spotify</a></p><p>If your friends are not really your friends and don’t use Spotify, it’ll come in handy to share songs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mcZ1Yt9JPiiuHNDHgUpBvw.png" /></figure><p>That’s all for today! If you have something interesting to share, feel free to leave a comment.</p><p>Raycast is 100% free, if you want to support the developers and get ChatGPT integration — consider subscribing (starting with 10$ monthly). <a href="https://www.raycast.com/">The link to the official website.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd9fd8622afa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building simple iOS client for using chatGPT in 5 minutes]]></title>
            <link>https://horovenko.medium.com/building-simple-ios-client-for-using-chatgpt-in-5-minutes-2cd559a900c5?source=rss-6c5242db4b15------2</link>
            <guid isPermaLink="false">https://medium.com/p/2cd559a900c5</guid>
            <category><![CDATA[swiftui]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Artem Horovenko]]></dc:creator>
            <pubDate>Mon, 06 Feb 2023 11:21:00 GMT</pubDate>
            <atom:updated>2023-02-06T11:21:00.351Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NscblJzLWumQy1W9uzBrfA.jpeg" /><figcaption>source: Unsplash <a href="https://unsplash.com/@deepmind">deepmind</a></figcaption></figure><p>We’re all heard about chat GPT and how capable it is in a lot of different tasks. Might it be handy to keep it as a dedicated app on your iPhone? But instead of paying for a 3d party app, let’s build our own!</p><p>Requirements: <a href="https://apps.apple.com/fr/app/xcode/id497799835?l=en&amp;mt=12">XCode</a>(link to download from AppStore), openAI API key</p><h3>Let’s build it!</h3><h3>1. Let’s get an openAI API Key first.</h3><p>Open <a href="https://openai.com/api/">homepage</a>, create account and open your profile.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/274/1*WURNKAm1HnPxFeS4zLyNgw.png" /><figcaption>source: openAI website</figcaption></figure><p>Then navigate to API keys section and click <strong>Create new secret Key</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*Rl1E8kaNl7K-1B2YH3gfPg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*Rl1E8kaNl7K-1B2YH3gfPg.png" /></figure><p>Save it somewhere safe, we gonna need it soon.</p><h3>2. Open Xcode and create new project. Then navigate to File — Add Package</h3><p>We will use <a href="https://github.com/alfianlosari/ChatGPTSwift">https://github.com/alfianlosari/ChatGPTSwift</a> package to make things clear and easy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-SEtY81DbGH0GNlAKac96Q.png" /></figure><p>3. Finally, let’s write some code!</p><p>First let’s import openAI package by adding</p><pre>import ChatGPTSwift</pre><p>Then create a constant for your API</p><pre> let api = ChatGPTAPI(apiKey: &quot;paste_your_key_here&quot;)</pre><p>and add placeholder to typing out prompts and for result output</p><pre> @State var prompt: String = &quot;&quot;<br> @State var response: [String] = []</pre><p>Next, let’s create simple layout. All we need for this simple app is 2 button (submit prompt, clear results), input field, output field. Let’s add it to the canvas and put it in a vertical scrollview(as out results might contain lots of words).</p><pre>  ScrollView {<br>            //input field<br>            TextField(text: $prompt) {<br>                Text(&quot;Type your request&quot;)<br>                    .foregroundColor(.white)<br>            }<br>            .frame(width: 300, height: 50)<br>            .background(.gray)<br>            .cornerRadius(10)<br>            .foregroundColor(.white)<br>        <br>            <br>            //submit button<br>            Button{<br>              //here goes submit prompt action<br>            } label: {<br>                Text(&quot;Submit prompt&quot;)<br>            }<br>            .frame(width: 150, height: 50)<br>            .background(.blue)<br>            .foregroundColor(.white)<br>            .cornerRadius(10)<br>           <br>            <br>            //clear button<br>            Button{<br>                responseFull.removeAll()<br>                text = &quot;&quot;<br>            } label: {<br>                Text(&quot;Clear&quot;)<br>            }<br>            .frame(width: 150, height: 50)<br>            .background(.red)<br>            .foregroundColor(.white)<br>            .cornerRadius(10)<br>           <br>            <br>            //result field<br>            Text(response.joined())<br>                .textSelection(.enabled)   <br>        }</pre><p>To generate a prompt we will be calling a function <strong>sendMessageStream. </strong>This function might throw an error so let’s put it in a Do-Catch block to catch possible errors.</p><p>There are two ways for using this extension:</p><ol><li>First one to wait until the whole answer is generated and then display it.</li><li>More “native” way — to get result dynamically appear while being generated.</li></ol><p>I prefer second one as it how chatGPT works. To show dynamically updating response I used array of strings, which updets by appending word by word.</p><pre>Task {<br>     do {<br>         let stream = try await api.sendMessageStream(text: text)<br>         for try await line in stream {<br>         result.append(line)<br>         print(line)<br>           }<br>              } catch {<br>              print(error.localizedDescription)<br>              }<br>          }</pre><p>Let’s add clear action for our Clear Button by adding:</p><pre> result.removeAll()<br> prompt = &quot;&quot;</pre><p>Finally — let’s test it in Xcode simulator on your iPhone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*XHVhQb3L4l-p9_3QyPxfbw.png" /></figure><p>The whole code is available below.</p><pre>import SwiftUI<br>import ChatGPTSwift<br><br><br><br>struct ContentView: View {<br>    let api = ChatGPTAPI(apiKey: &quot;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&quot;)<br>    <br>    <br>    @State var prompt: String = &quot;&quot;<br>    @State var response: [String] = []<br>    <br>    var body: some View {<br>        ScrollView {<br>            //Input field<br>            TextField(text: $prompt) {<br>                Text(&quot;Type your request&quot;)<br>                    .foregroundColor(.white)<br>            }<br>            .frame(width: 300, height: 50)<br>            .background(.gray)<br>            .cornerRadius(10)<br>            .foregroundColor(.white)<br>        <br>            <br>            //submit button<br>            Button{<br>                Task {<br>                    do {<br>                        let stream = try await api.sendMessageStream(text: prompt)<br>                        for try await line in stream {<br>                            response.append(line)<br>                            print(line)<br>                        }<br>                    } catch {<br>                        print(error.localizedDescription)<br>                    }<br>                }<br>            } label: {<br>                Text(&quot;Submit prompt&quot;)<br>            }<br>            .frame(width: 150, height: 50)<br>            .background(.blue)<br>            .foregroundColor(.white)<br>            .cornerRadius(10)<br>            <br>            //Clear button<br>            Button{<br>                response.removeAll()<br>                prompt = &quot;&quot;<br>            } label: {<br>                Text(&quot;Clear&quot;)<br>            }<br>            .frame(width: 150, height: 50)<br>            .background(.red)<br>            .foregroundColor(.white)<br>            .cornerRadius(10)<br>            <br>            //output field<br>            Text(response.joined())<br>                .textSelection(.enabled)<br>        }<br>        .padding()<br>    }<br>}</pre><p>You can also download the whole project from <a href="https://github.com/amolon615/betterAIChat">github</a>.</p><h3>That’s it! See you in the next articles!</h3><p>Follow me on <a href="https://twitter.com/amolon210">Twitter</a> &amp; check out <a href="https://t.co/ud240ELcii">my Apps</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2cd559a900c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating Complex SwiftUI Shapes Using Design Tools]]></title>
            <link>https://medium.com/better-programming/an-easy-way-to-create-complex-shapes-for-using-with-swiftui-2a374685ba84?source=rss-6c5242db4b15------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a374685ba84</guid>
            <category><![CDATA[design]]></category>
            <category><![CDATA[swiftui]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Artem Horovenko]]></dc:creator>
            <pubDate>Wed, 01 Feb 2023 20:56:09 GMT</pubDate>
            <atom:updated>2023-02-04T10:12:44.935Z</atom:updated>
            <content:encoded><![CDATA[<h4>An easy way to convert design to code</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xxW2Iv-GocOYaus7NCxnZQ.jpeg" /><figcaption>source: <a href="https://unsplash.com/@tina_96">Christina Kirschnerova</a></figcaption></figure><p>SwiftUI gives us 5 built-in shapes for use in our projects.</p><p>They are Rectangle, RoundedRectangle(which has a corner radius parameter), Capsule, Ellipse, and Circle.</p><p>Let’s see it in action:</p><pre>struct ShapesView: View {<br>    var body: some View {<br>        VStack (spacing: 10) {<br>            Rectangle()<br>                .fill(.pink)<br>                .frame(width: 100, height: 50)<br><br>            RoundedRectangle(cornerRadius: 10, style: .continuous)<br>                .fill(.purple)<br>                .frame(width: 100, height: 100)<br><br>            Capsule()<br>                .fill(.blue)<br>                .frame(width: 150, height: 150)<br><br>            Ellipse()<br>                .fill(.red)<br>                .frame(width: 150, height: 100)<br><br>            Circle()<br>                .fill(.green)<br>                .frame(width: 150, height: 250)<br>        }<br>    }<br>}</pre><p>Which results in:</p><figure><img alt="Screen shot of the iPhone 14 Pro in the Xcode simulator. Which shows 5 shapes in a vertical list." src="https://cdn-images-1.medium.com/max/479/1*Nf6H7r69dycQ1XDWjzWj3A.png" /><figcaption>Xcode version 14.2</figcaption></figure><p>Shapes and Paths are powerful primitives that can be used in many situations.</p><p>However, there are instances when more complex shapes are needed. Apple has provided support for custom drawing with two integrated tools: Paths and Shapes.</p><p>A Shape is made up of a series of Paths. <a href="https://www.hackingwithswift.com/books/ios-swiftui/paths-vs-shapes-in-swiftui">Paul Hudson has a great introduction to these tools.</a></p><p>Let’s check how it looks in action and draw a simple hexagon using the Shape protocol.</p><pre>struct Hexagon: Shape {<br>    func path(in rect: CGRect) -&gt; Path {<br>        var path = Path()<br>        let width = rect.width<br>        let height = rect.height<br>        let x = rect.midX<br>        let y = rect.midY<br>        let side = min(width, height) / 2.0<br>        let a = side / 2.0<br>        let b = side * sqrt(3.0) / 2.0<br>        path.move(to: CGPoint(x: x, y: y - side))<br>        path.addLine(to: CGPoint(x: x + a, y: y - b))<br>        path.addLine(to: CGPoint(x: x + a, y: y + b))<br>        path.addLine(to: CGPoint(x: x, y: y + side))<br>        path.addLine(to: CGPoint(x: x - a, y: y + b))<br>        path.addLine(to: CGPoint(x: x - a, y: y - b))<br>        path.closeSubpath()<br>        return path<br>    }<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/252/1*MtIBdFsbHE3OXPfiTJMAFA.png" /><figcaption>Hexagon created using SwiftUI’s shape method.</figcaption></figure><p>Can the default method be used for more complex needs? Yes, but it requires a lot of code and the potential for many bugs.</p><p>As an example, let’s create a neomorphic widget for our habit-tracking app:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/279/1*-kTDfO0ZkL19bZlqyEwp5Q.png" /><figcaption>Screenshot of a desired result</figcaption></figure><p>To achieve a depth effect for the number 12, simply using regular Text(“12”) and applying inner shadow modifiers won’t suffice. We need to create it using Shapes.</p><p>To accomplish this, let’s use a vector graphics tool such as Figma (free) or Sketch (paid) to create the shapes.</p><p>First, put a screenshot of an object you want to replicate as a Shape on the background.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NQYkHeR4luYRZj0NrcCOjA.png" /></figure><p>2. Then start drawing numbers using curves (hotkey “V” in Sketch) on the top of the screenshot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MDji60UxHKpa4T7QqRuL-A.png" /></figure><p>3. Export your created Shape in SVG format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/1*gJbOZ0xfXJPltRv3BPQh2w.png" /></figure><p>4. Open the saved file with TextEditor and copy the code</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hlxfqMunbtmFycdNrpKL1w.png" /><figcaption>This code is basically our SVG drawing.</figcaption></figure><p>5. Then open <a href="https://svg-to-swiftui.quassum.com/">https://svg-to-swiftui.quassum.com/</a>, (It’s free, but consider making a donation as a way of expressing gratitude), paste our code to the left block, and click convert. You can finally copy the result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q6rZ5BdsoWhazSMWRQ5dwQ.png" /><figcaption>source: <a href="https://svg-to-swiftui.quassum.com/">https://svg-to-swiftui.quassum.com/</a></figcaption></figure><p>6. Add the freshly generated Shape to your code.</p><pre>struct MyCustomShape: Shape {<br>    func path(in rect: CGRect) -&gt; Path {<br>        var path = Path()<br>        let width = rect.size.width<br>        let height = rect.size.height<br>        path.move(to: CGPoint(x: 0.19277*width, y: 0.92051*height))<br>        path.addCurve(to: CGPoint(x: 0.2653*width, y: 0.98843*height), control1: CGPoint(x: 0.20687*width, y: 0.96579*height), control2: CGPoint(x: 0.23104*width, y: 0.98843*height))<br>        path.addCurve(to: CGPoint(x: 0.33219*width, y: 0.92647*height), control1: CGPoint(x: 0.29955*width, y: 0.98843*height), control2: CGPoint(x: 0.32185*width, y: 0.96777*height))<br>        path.addLine(to: CGPoint(x: 0.33219*width, y: 0.087*height))<br>        path.addCurve(to: CGPoint(x: 0.32684*width, y: 0.06301*height), control1: CGPoint(x: 0.33219*width, y: 0.07844*height), control2: CGPoint(x: 0.33033*width, y: 0.07008*height))<br>        path.addCurve(to: CGPoint(x: 0.24718*width, y: 0.0101*height), control1: CGPoint(x: 0.30949*width, y: 0.02773*height), control2: CGPoint(x: 0.28294*width, y: 0.0101*height))<br>        path.addCurve(to: CGPoint(x: 0.2008*width, y: 0.02081*height), control1: CGPoint(x: 0.23579*width, y: 0.0101*height), control2: CGPoint(x: 0.21869*width, y: 0.01038*height))<br>        path.addCurve(to: CGPoint(x: 0.00999*width, y: 0.19972*height), control1: CGPoint(x: 0.17119*width, y: 0.03807*height), control2: CGPoint(x: 0.10759*width, y: 0.0977*height))<br>        path.addCurve(to: CGPoint(x: 0.00999*width, y: 0.29059*height), control1: CGPoint(x: -0.00333*width, y: 0.23402*height), control2: CGPoint(x: -0.00333*width, y: 0.26431*height))<br>        path.addCurve(to: CGPoint(x: 0.05958*width, y: 0.31902*height), control1: CGPoint(x: 0.0233*width, y: 0.31686*height), control2: CGPoint(x: 0.03983*width, y: 0.32634*height))<br>        path.addLine(to: CGPoint(x: 0.18235*width, y: 0.21522*height))<br>        path.addCurve(to: CGPoint(x: 0.19176*width, y: 0.21836*height), control1: CGPoint(x: 0.18557*width, y: 0.21249*height), control2: CGPoint(x: 0.18979*width, y: 0.2139*height))<br>        path.addCurve(to: CGPoint(x: 0.19277*width, y: 0.2233*height), control1: CGPoint(x: 0.19242*width, y: 0.21985*height), control2: CGPoint(x: 0.19277*width, y: 0.22156*height))<br>        path.addLine(to: CGPoint(x: 0.19277*width, y: 0.92051*height))<br>        path.addLine(to: CGPoint(x: 0.19277*width, y: 0.92051*height))<br>        path.closeSubpath()<br>        path.move(to: CGPoint(x: 0.69057*width, y: 0.7981*height))<br>        path.addCurve(to: CGPoint(x: 0.97169*width, y: 0.34296*height), control1: CGPoint(x: 0.86713*width, y: 0.57524*height), control2: CGPoint(x: 0.96084*width, y: 0.42353*height))<br>        path.addCurve(to: CGPoint(x: 0.73689*width, y: 0.00042*height), control1: CGPoint(x: 1.01286*width, y: 0.03744*height), control2: CGPoint(x: 0.79508*width, y: 0.00549*height))<br>        path.addCurve(to: CGPoint(x: 0.54637*width, y: 0.09386*height), control1: CGPoint(x: 0.67965*width, y: -0.00457*height), control2: CGPoint(x: 0.60044*width, y: 0.03569*height))<br>        path.addCurve(to: CGPoint(x: 0.49384*width, y: 0.25608*height), control1: CGPoint(x: 0.50625*width, y: 0.13702*height), control2: CGPoint(x: 0.48874*width, y: 0.19109*height))<br>        path.addCurve(to: CGPoint(x: 0.54637*width, y: 0.32849*height), control1: CGPoint(x: 0.49732*width, y: 0.30435*height), control2: CGPoint(x: 0.51483*width, y: 0.32849*height))<br>        path.addCurve(to: CGPoint(x: 0.60648*width, y: 0.29057*height), control1: CGPoint(x: 0.56918*width, y: 0.32849*height), control2: CGPoint(x: 0.58922*width, y: 0.31585*height))<br>        path.addLine(to: CGPoint(x: 0.60647*width, y: 0.29056*height))<br>        path.addCurve(to: CGPoint(x: 0.6279*width, y: 0.24067*height), control1: CGPoint(x: 0.61618*width, y: 0.27632*height), control2: CGPoint(x: 0.6235*width, y: 0.25929*height))<br>        path.addCurve(to: CGPoint(x: 0.73689*width, y: 0.16131*height), control1: CGPoint(x: 0.6404*width, y: 0.18776*height), control2: CGPoint(x: 0.67673*width, y: 0.16131*height))<br>        path.addCurve(to: CGPoint(x: 0.80924*width, y: 0.39983*height), control1: CGPoint(x: 0.77971*width, y: 0.16131*height), control2: CGPoint(x: 0.88867*width, y: 0.21187*height))<br>        path.addCurve(to: CGPoint(x: 0.50041*width, y: 0.82587*height), control1: CGPoint(x: 0.77745*width, y: 0.47504*height), control2: CGPoint(x: 0.58125*width, y: 0.70046*height))<br>        path.addCurve(to: CGPoint(x: 0.48514*width, y: 0.9152*height), control1: CGPoint(x: 0.47311*width, y: 0.86822*height), control2: CGPoint(x: 0.48396*width, y: 0.90852*height))<br>        path.addCurve(to: CGPoint(x: 0.5197*width, y: 0.96465*height), control1: CGPoint(x: 0.48792*width, y: 0.93094*height), control2: CGPoint(x: 0.49944*width, y: 0.94742*height))<br>        path.addCurve(to: CGPoint(x: 0.53583*width, y: 0.97096*height), control1: CGPoint(x: 0.52455*width, y: 0.96877*height), control2: CGPoint(x: 0.53013*width, y: 0.97096*height))<br>        path.addLine(to: CGPoint(x: 0.94174*width, y: 0.97096*height))<br>        path.addCurve(to: CGPoint(x: 0.96928*width, y: 0.95989*height), control1: CGPoint(x: 0.95149*width, y: 0.97096*height), control2: CGPoint(x: 0.96104*width, y: 0.96712*height))<br>        path.addCurve(to: CGPoint(x: 0.99372*width, y: 0.89749*height), control1: CGPoint(x: 0.98557*width, y: 0.94557*height), control2: CGPoint(x: 0.99372*width, y: 0.92477*height))<br>        path.addCurve(to: CGPoint(x: 0.96211*width, y: 0.82232*height), control1: CGPoint(x: 0.99372*width, y: 0.86647*height), control2: CGPoint(x: 0.98318*width, y: 0.84142*height))<br>        path.addCurve(to: CGPoint(x: 0.94337*width, y: 0.81459*height), control1: CGPoint(x: 0.95654*width, y: 0.81728*height), control2: CGPoint(x: 0.95002*width, y: 0.81459*height))<br>        path.addLine(to: CGPoint(x: 0.69517*width, y: 0.81459*height))<br>        path.addCurve(to: CGPoint(x: 0.68833*width, y: 0.8051*height), control1: CGPoint(x: 0.69139*width, y: 0.81458*height), control2: CGPoint(x: 0.68833*width, y: 0.81033*height))<br>        path.addCurve(to: CGPoint(x: 0.69057*width, y: 0.7981*height), control1: CGPoint(x: 0.68833*width, y: 0.80243*height), control2: CGPoint(x: 0.68915*width, y: 0.79989*height))<br>        path.closeSubpath()<br>        return path<br>    }<br>}</pre><p>7. And we can finally see our Shape:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*VPHzdBVqOAIf4hvAMKr86g.png" /></figure><p>8. Finally, we can apply all modifiers to it as to a regular Shape object and get nice numbers with a depth effect.</p><pre>  MyCustomShape()<br>   .frame(width: 100, height: 100)<br>   .overlay(<br>  MyCustomShape()<br>    .fill(<br>    .shadow(.inner(color: bgl, radius: 5, x: -5, y: 5))<br>    .shadow(.inner(color: bgd, radius: 5, x: 5, y: -5)))<br>    .foregroundColor(colorbg))</pre><p>9. Final result</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*AK4kcb7ovVbJJ47e0wynTg.png" /></figure><p>That’s it! Simple and straightforward.</p><p>Imagine having to write all of those lines of code yourself. I hope this saves you some time so that you can use it for some interesting coding. Until next time!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a374685ba84" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/an-easy-way-to-create-complex-shapes-for-using-with-swiftui-2a374685ba84">Creating Complex SwiftUI Shapes Using Design Tools</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>