As in the previous article the author once again made a really great job. This time he prepared an in-depth analysis of the
https://medium.com/the-swift-cooperative/mastering-viewthatfits-3294d74cb17b
#SwiftUI #Layout
ViewThatFits
component, providing a detailed explanation of its functionality and the underlying reasons for its operation. Moreover, the author went a step further by recreating this component using the Layout protocol, showcasing both a profound understanding and practical application of the subject matter.https://medium.com/the-swift-cooperative/mastering-viewthatfits-3294d74cb17b
#SwiftUI #Layout
Medium
Mastering ViewThatFits
A layout tool that is easy to get started with but not easy to master
Interesting approach for storing API keys by using on-demand resources with enabled prefetching instead of embedding them directly in code, that could lead to expose them as plain strings when extracted from IPA files.
https://augmentedcode.io/2023/11/27/using-on-demand-resources-for-securely-storing-api-keys-in-ios-apps/
#Security
https://augmentedcode.io/2023/11/27/using-on-demand-resources-for-securely-storing-api-keys-in-ios-apps/
#Security
Augmented Code
Using on-demand resources for securely storing API keys in iOS apps
Many apps use API keys when authenticating network requests. Although there are better ways of authenticating requests like OAuth with PKCE, but it might not always be possible. One thing what we m…
Apple has announced that, beginning January 2024, all Apple Developer Program memberships will include 25 compute hours per month on Xcode Cloud at no additional cost.
https://developer.apple.com/news/?id=ik9z4ll6
#Cloud
https://developer.apple.com/news/?id=ik9z4ll6
#Cloud
Apple
25 hours of Xcode Cloud now included with the Apple Developer Program - Latest News - Apple Developer
Xcode Cloud, the continuous integration and delivery service built into Xcode, accelerates the development and delivery of high-quality apps. It brings together cloud-based tools that help you build apps, run automated tests in parallel, deliver apps to testers…
I came across a great video about creating a Design System using the example of button styling. I particularly liked the approach of expanding a simple button with additional fields such as description and title by combining different styles.
https://youtu.be/Z7rJKr6Jlho?si=cIYfiJaOOHFioV7x
#SwiftUI #design_system
https://youtu.be/Z7rJKr6Jlho?si=cIYfiJaOOHFioV7x
#SwiftUI #design_system
YouTube
Creating a Design System with SwiftUI
In this talk, we will explore how to use SwiftUI to create a design system for our apps. We'll focus on using standard types and patterns provided by SwiftUI.
This article is a great reminder to avoid using AnyView as much as possible, or use it carefully when really necessary. The author conducted some measurements of using AnyView (and without it) in lists and compared the results.
https://martinmitrevski.com/2024/01/02/anyviews-impact-on-swiftui-performance/
#SwiftUI #performance
https://martinmitrevski.com/2024/01/02/anyviews-impact-on-swiftui-performance/
#SwiftUI #performance
martinmitrevski
AnyView’s impact on SwiftUI performance
Introduction AnyView is a type-erased view, that can be handy in SwiftUI containers consisting of heterogeneous views. In these cases, you don’t need to specify the concrete type of all the v…
A few non-obvious tips about using dynamic member lookup in conjunction with SwiftUI Binding.
https://chris.eidhof.nl/post/swiftui-binding-tricks/
#SwiftUI
https://chris.eidhof.nl/post/swiftui-binding-tricks/
#SwiftUI
chris.eidhof.nl
SwiftUI Binding Tips — Chris Eidhof
Clickbait news. Apple introduces new programming language!
… for writing configurations.
It combines the simplicity of static languages with the capabilities of general programming, featuring classes, functions, conditions, and loops. Pkl ensures safety with type checks, offers ease of use with IDE integration, and supports package sharing and integration into various programming languages.
https://pkl-lang.org/blog/introducing-pkl.html
… for writing configurations.
It combines the simplicity of static languages with the capabilities of general programming, featuring classes, functions, conditions, and loops. Pkl ensures safety with type checks, offers ease of use with IDE integration, and supports package sharing and integration into various programming languages.
https://pkl-lang.org/blog/introducing-pkl.html
Oh, look at this gem! Chris Eidhof from objc.io has built a guide for visually understanding how SwiftUI's layout system works. It's even possible to adjust some layout parameters to thoroughly grasp the consept.
https://www.swiftuifieldguide.com
#swiftui #layout
https://www.swiftuifieldguide.com
#swiftui #layout
SwiftUI Field Guide
A visual guide to help explore SwiftUI
I found the strength to write an article about making customizable components in SwiftUI.
p.s. the standard for writing articles has been met, expect the next article to be published next year.😄
https://otbivnoe.ru/2024/02/25/Making-Customizable-SwiftUI-Components.html
#SwiftUI #design_system
p.s. the standard for writing articles has been met, expect the next article to be published next year.
https://otbivnoe.ru/2024/02/25/Making-Customizable-SwiftUI-Components.html
#SwiftUI #design_system
Please open Telegram to view this post
VIEW IN TELEGRAM
otbivnoe's blog
Making Customizable SwiftUI Components
In this article, we're going to explore different ways of creating flexible components in SwifUI.
Apple’s released Swift 5.10 – it's making concurrent programming safer with full data isolation. This milestone sets the stage for Swift 6, which will enforce data isolation by default, improving usability and eliminating data races.
https://swift.org/blog/swift-5.10-released/
#swift #concurrency
https://swift.org/blog/swift-5.10-released/
#swift #concurrency
Swift.org
Swift 5.10 Released
Swift was designed to be safe by default, preventing entire categories of programming mistakes at compile time. Sources of undefined behavior in C-based languages, such as using variables before they’re initialized or a use-after-free, are defined away in…
Great long-read of making a native text editor app as a solo dev (you probably heard or used it - Paper app).
https://papereditor.app/dev
In the second part the author concentrates on the deep-tech stuff - how text editing works internally.
https://papereditor.app/internals
https://papereditor.app/dev
In the second part the author concentrates on the deep-tech stuff - how text editing works internally.
https://papereditor.app/internals
Paper
9 years of Apple text editor solo dev
Thoughts on building Paper as an indie maker.
Please open Telegram to view this post
VIEW IN TELEGRAM
Digital Bunker
Recreating The DVD Screensaver In SwiftUI
Do you remember that DVD screensaver from the early 2000s? Not only was it a practical tool for preventing screen burn-in on CRT displays, but it's also become a cultural icon.
Like many of you, I can remember seeing this screensaver as a kid, but I'd completely…
Like many of you, I can remember seeing this screensaver as a kid, but I'd completely…
Please open Telegram to view this post
VIEW IN TELEGRAM
Apple Developer
WWDC24
Join the worldwide developer community online for a week of technology and creativity.
TIL there’s a secret debug menu 🤯
https://x.com/hrumarek/status/1190942518080397317?s=46&t=YNy4qFziI3PFPTlrSCXpmA
https://x.com/hrumarek/status/1190942518080397317?s=46&t=YNy4qFziI3PFPTlrSCXpmA
I often find that developers are confused about which component is best for them: ZStack or overlay (+background). So I hope this short article will clarify the differences and help delve deeper into the unique properties of these two modifiers.
https://fatbobman.com/en/posts/in-depth-exploration-of-overlay-and-background-modifiers-in-swiftui/
#SwiftUI #layout
https://fatbobman.com/en/posts/in-depth-exploration-of-overlay-and-background-modifiers-in-swiftui/
#SwiftUI #layout
fatbobman.com
In-Depth Exploration of Overlay and Background Modifiers in SwiftUI | Fatbobman's Blog
This article explores overlay and background view modifiers, their key differences from ZStack, and their ideal use cases.
If you also thought that in VStask the default spacing value is always 8, then this article is here to clarify.
https://fatbobman.com/en/posts/spacing-of-swiftui/
#SwiftUI #Layout
https://fatbobman.com/en/posts/spacing-of-swiftui/
#SwiftUI #Layout
fatbobman.com
What Does spacing = nil Mean in SwiftUI? | Fatbobman's Blog
This article will explore the concept of Spacing in SwiftUI in-depth, and share some related tips and considerations.
Author decided to explore the Attribute Graph - a key part of how SwiftUI updates the user interface. While the topic is advanced, it provides valuable insights for developers eager to dive into layout mechanism under the hood. 🤯
https://rensbr.eu/blog/swiftui-attribute-graph/
#SwiftUI #layout
https://rensbr.eu/blog/swiftui-attribute-graph/
#SwiftUI #layout
rensbr.eu
Untangling the AttributeGraph - Rens Breur
Stephen and Brandon wrote an article to address common questions and misconceptions about the Composable Architecture (TCA). They aim to clarify its benefits, its relationship with SwiftUI, and its suitability for various apps. The article also tackles comparisons with Redux, and concerns about complexity, performance, and boilerplate code. Additionally, it discusses action modeling and state management efficiency within TCA.
https://www.pointfree.co/blog/posts/141-composable-architecture-frequently-asked-questions
#TCA #architecture
https://www.pointfree.co/blog/posts/141-composable-architecture-frequently-asked-questions
#TCA #architecture
www.pointfree.co
Composable Architecture Frequently Asked Questions
A collection of some of the most common questions and comments people have concerning the
library.
library.
Xcode 16 brings a lot of updates - I want to share some of them that I find interesting:
- Predictive code completion
- Support for EditorConfig
- Explicitly built modules - more actionable error messages, improved debugger performance, and better scheduling decisions which maximize parallelism. LLDB can now import explicitly-built Swift and Clang modules directly
- A new code deduplication algorithm brings additional code size savings and an improved static link time performance
- New execution engine for Previews - shared build products between Build and Run and Previews, switching between the two is instant
- Previews now support previewing views inside of static libraries
- You can cut text from the Source Editor, and then use the “New File from Clipboard” to quickly extract part of a source file into a new file
- Buildable folder references - only record the folder path into the project file without enumerating the contained files. This minimizes diffs to the project when files are added and removed, and avoids source control conflicts with your team
- Swift-DocC now warns about documentation for parameters and return values that doesn’t exist for that documented API
- A lot features in Instruments
- Swift Testing - an all-new testing framework built for Swift from the ground up
#Xcode #wwdc
- Predictive code completion
- Support for EditorConfig
- Explicitly built modules - more actionable error messages, improved debugger performance, and better scheduling decisions which maximize parallelism. LLDB can now import explicitly-built Swift and Clang modules directly
- A new code deduplication algorithm brings additional code size savings and an improved static link time performance
- New execution engine for Previews - shared build products between Build and Run and Previews, switching between the two is instant
- Previews now support previewing views inside of static libraries
- You can cut text from the Source Editor, and then use the “New File from Clipboard” to quickly extract part of a source file into a new file
- Buildable folder references - only record the folder path into the project file without enumerating the contained files. This minimizes diffs to the project when files are added and removed, and avoids source control conflicts with your team
- Swift-DocC now warns about documentation for parameters and return values that doesn’t exist for that documented API
- A lot features in Instruments
- Swift Testing - an all-new testing framework built for Swift from the ground up
#Xcode #wwdc
Apple Developer Documentation
Xcode 16 Beta Release Notes | Apple Developer Documentation
Update your apps to use new features, and test your apps against API changes.
HTML Embed Code: