<?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 Goateraction on Medium]]></title>
        <description><![CDATA[Stories by Goateraction on Medium]]></description>
        <link>https://medium.com/@Hahk3?source=rss-7c58191248f8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*U5tvrpGk4qQKXj3A0pe2iA.jpeg</url>
            <title>Stories by Goateraction on Medium</title>
            <link>https://medium.com/@Hahk3?source=rss-7c58191248f8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 03:17:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Hahk3/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[SwiftUI vs Jetpack Compose]]></title>
            <link>https://medium.com/@Hahk3/swiftui-vs-jetpack-compose-f81edb9c9fa3?source=rss-7c58191248f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/f81edb9c9fa3</guid>
            <dc:creator><![CDATA[Goateraction]]></dc:creator>
            <pubDate>Tue, 29 Apr 2025 06:36:43 GMT</pubDate>
            <atom:updated>2025-04-29T07:02:09.764Z</atom:updated>
            <content:encoded><![CDATA[<h3>SwiftUI vs Jetpack Compose 01</h3><h3>A Minimal UI Comparison</h3><p>If you’ve worked on both iOS and Android, you’ll quickly notice how similar <strong>SwiftUI</strong> and <strong>Jetpack Compose</strong> have become in their declarative approach to building UIs.</p><p>The example below shows how to stack two text elements with a background and padding in each framework.</p><p>While SwiftUI uses chained modifiers and Compose passes Modifier as a parameter, both offer a clean and readable way to build modern interfaces.</p><p>SwiftUI</p><pre>VStack {<br>  Text(&quot;Hello&quot;)<br>  Text(&quot;World&quot;)<br>}<br>.padding(16)<br>.background(<br>  .blue<br>)<br></pre><p>Jetpack Compose</p><pre>Column(<br>  modifier = Modifier<br>      .background(color = Color.Blue)<br>      .padding(16.dp)<br>) {<br>  Text(&quot;Hello&quot;)<br>  Text(&quot;World&quot;)<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f81edb9c9fa3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SwiftUI iOS LottieView]]></title>
            <link>https://medium.com/@Hahk3/swiftui-ios-lottie-view-3ace48843a13?source=rss-7c58191248f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ace48843a13</guid>
            <dc:creator><![CDATA[Goateraction]]></dc:creator>
            <pubDate>Wed, 12 Jul 2023 09:10:10 GMT</pubDate>
            <atom:updated>2023-07-12T09:11:00.200Z</atom:updated>
            <content:encoded><![CDATA[<p>iOS에서 Lottie 실행 UIViewRepresentable 뷰</p><pre>struct LottiePlayer: UIViewRepresentable {<br>    <br>    var name = &quot;file name&quot;<br>    var loopMode: LottieLoopMode = .loop<br><br>    func makeUIView(context: Context) -&gt; LottieAnimationView {<br>        let view = LottieAnimationView(name: name, bundle: Bundle.main)<br>        view.loopMode = loopMode<br>        view.play()<br>        <br>        return view<br>        <br>    }<br>    <br>    func updateUIView(_ uiView: UIViewType, context: Context) {<br>        <br>    }<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ace48843a13" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SwiftUI macOS LottieView]]></title>
            <link>https://medium.com/@Hahk3/swiftui-macos-lottieview-c0418ec5dd89?source=rss-7c58191248f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0418ec5dd89</guid>
            <dc:creator><![CDATA[Goateraction]]></dc:creator>
            <pubDate>Wed, 12 Jul 2023 09:05:25 GMT</pubDate>
            <atom:updated>2023-07-12T09:08:22.825Z</atom:updated>
            <content:encoded><![CDATA[<p>맥에서 Lottie 실행 코드 NSViewRepresentable 뷰</p><pre>struct LottieView: NSViewRepresentable {<br>    <br>    var lottieFile: String<br>    var loopMode: LottieLoopMode = .loop<br>    var animationView = LottieAnimationView()<br>    <br>    func makeNSView(context: NSViewRepresentableContext&lt;LottieView&gt;) -&gt; NSView {<br>        let view = NSView()<br>        <br>        animationView.animation = LottieAnimation.filepath(lottieFile) // Loads an animation from a specific filepath.<br>//        animationView.animation = LottieAnimation.named(lottieFile) // Loads an animation model from a bundle by its name. Returns nil if an animation is not found.<br>        animationView.loopMode = loopMode<br>        animationView.translatesAutoresizingMaskIntoConstraints = false<br>        view.addSubview(animationView)<br>        NSLayoutConstraint.activate([<br>            animationView.widthAnchor.constraint(equalTo: view.widthAnchor),<br>            animationView.heightAnchor.constraint(equalTo: view.heightAnchor)<br>        ])<br>        return view<br>    }<br>    <br>    func updateNSView(_ nsView: NSView, context: NSViewRepresentableContext&lt;LottieView&gt;) {<br>               <br>    }<br>}</pre><p>😁</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0418ec5dd89" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Animate with springs]]></title>
            <link>https://medium.com/@Hahk3/animate-with-springs-fcc53c358ce9?source=rss-7c58191248f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/fcc53c358ce9</guid>
            <dc:creator><![CDATA[Goateraction]]></dc:creator>
            <pubDate>Wed, 12 Jul 2023 04:50:15 GMT</pubDate>
            <atom:updated>2023-07-12T04:50:15.259Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>‘애플의 UI 애니메이션은 현실세계의 물체가 물리적으로 움직이는것과 같이 느껴지기를 원한다’</strong></p><p>애플에서 만들고 있는 UI는 모든 곳에서 변화하고 움직이며 더욱 역동적으로 성장하고 있습니다.</p><p>그리고 사람들은 이것을 좋아합니다.</p><p>애니메이션을 통해 인터페이스가 더욱 생동감 있게 느껴지고, 무슨 일이 일어나고 있는지 더 쉽게 이해할 수 있으며 UI 인터랙션에 즐거움을 제공합니다.</p><p>=</p><p>- 한 장면에서 다른 장면으로 이동하는 트랜지션</p><p>- 디바이스와 직접 상호 작용하는 제스처</p><p>- 화면의 개체가 움직이거나 시각적 속성을 변경하는 애니메이션 등</p><p>이 모든 것이 함께 작동하여 유동적이고 인터랙티브한 UI를 만드는 데 도움이 됩니다.</p><p>훌륭한 애니메이션은 어떻게 만들어야 하나요?</p><p><strong>1. 자연스럽게 움직여야 합니다.</strong></p><p>오브젝트가 현재 위치에서 다른 위치로 툭! 나타나면 거슬리고 혼란스러울 수 있습니다.</p><p>하지만 물체가 다음 위치로 쓰윽~ 움직이면 훨씬 자연스럽게 느껴집니다.</p><p><strong>2. 연속적으로 자연스럽게 움직여야 합니다.</strong></p><p>드래그 제스처 도중 손을 놓았을 때 그 이후 애니메이션이 자연스럽게 실행되어야 합니다.</p><p>하지만 이때 타이밍 커브의 Ease In-Out로 적용하면 <strong>손을 놓았을 때의 이후 애니메이션이 부자연스럽게 진행</strong>됩니다.</p><p>왜냐하면 손을 놓을 때의 <strong>초기 속도(initial velocity) 값이 적용</strong>되어야 하는데 타이밍 커브는 이를 적용할 수 없기 때문입니다.</p><p><strong>’Springs’</strong></p><p>앞의 문제를 해결할 수 있는 애니메이션은 바로 강력하고 다재다능하며 재미까지 겸비한 <strong>Spring</strong> 입니다.</p><p>스프링은 <strong>초기 속도(initial velocity)를 설정</strong>할 수 있어 제스처가 끝나는 곳에서 자연스럽게 애니메이션 되는 느낌을 받을 수 있습니다.</p><p>스프링 애니메이션은 바운스가 적용된 애니메이션만을 의미하는 것은 아닙니다.</p><p><strong>바운스가 없는 스프링도 사용하기 좋습니다. 👍</strong></p><p>왜냐하면 현실 세계에서 스프링에 부착된 물체의 물리적 행동을 기반으로 하기 때문에 우리 눈에 더 자연스럽고 믿을 수 있게 느껴지기 때문입니다.</p><p>이런 <strong>바운스가 없는 스프링도 iOS 전역의 애니메이션에 사용</strong>되고 있습니다.</p><p>스프링은 아래의 값으로 설정할 수 있습니다.</p><p><strong>Mass(질량) :</strong></p><p>mass는 움직이는 오브젝트의 무게입니다.</p><p>mass는 스프링에 부착된 물체의 관성을 변화시킵니다. 이는 물체가 움직이거나 움직이지 않으려는 의지입니다.</p><p><strong>Stiffness(강성) :</strong></p><p>Stiffness은<strong> </strong>스프링의 인장 강도로 정의됩니다. Stiffness가 높을수록 애니메이션이 더 부드러워집니다.</p><p>이는 오브젝트에 가해지는 힘에 영향을 미치며 물체가 목표물을 향해 얼마나 빨리 움직이는지에 영향을 줍니다.</p><p><strong>Damping(마찰력) :</strong></p><p>Damping은 자동차의 제동 또는 물체가 놓여 있는 표면의 마찰력으로 생각할 수 있습니다.</p><p>Damping의 목적은 시간이 지남에 따라 물체를 정지시키는 것입니다. 또한 물체를 오버슈팅하는 기능에도 영향을 미칩니다.</p><p><strong>Initial Velocity(초기 속도) :</strong></p><p>애니메이션이 시작될 때 오브젝트가 변경되는 속도로 정의됩니다.</p><p>기본 초기 속도는 0으로 설정되며 애니메이션의 초당 단위로 측정됩니다.</p><p>현재 베타버전인 iOS 17부터 위의 4가지 값 외에 -&gt; Bounce, Duration 2가지 값으로 좀 더 쉽게 적용할 수 있도록 스프링이 개선되었습니다.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fcc53c358ce9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SwiftUI Completed LongPress]]></title>
            <link>https://medium.com/@Hahk3/swiftui-completed-longpress-d556ac496976?source=rss-7c58191248f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/d556ac496976</guid>
            <dc:creator><![CDATA[Goateraction]]></dc:creator>
            <pubDate>Wed, 26 Oct 2022 08:20:30 GMT</pubDate>
            <atom:updated>2022-10-26T08:25:39.729Z</atom:updated>
            <content:encoded><![CDATA[<h3>SwiftUI Completed LongPress</h3><p>롱프레스시 minimumDuration이 지나면 자동으로 😀 실행</p><pre>@State <strong>var</strong> completedLongPress = <strong>false</strong></pre><pre><strong>var</strong> longPress: <strong>some</strong> Gesture {</pre><pre>     LongPressGesture(minimumDuration: 1)</pre><pre>          .onEnded { finished <strong>in</strong></pre><pre><strong>               self</strong>.completedLongPress = finished</pre><pre>               print(&quot;😀&quot;)</pre><pre>          }</pre><pre>}</pre><pre><br>Circle()<br>     .gesture(longPress)</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d556ac496976" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>