Bar Chart creation using Swift Charts
SwiftLee
by Antoine van der Lee
2d ago
Apple introduced Swift Charts during WWDC ’22, allowing you to visualize data into bar charts. Before this framework, we had to include all kinds of third-party solutions to draw charts in SwiftUI. Visualizing data using a similar declarative syntax to SwiftUI is simply fantastic. A bar chart is just one of the available options to … → The post Bar Chart creation using Swift Charts appeared first on SwiftLee ..read more
Visit website
Statistical significance and its importance with app experiments
SwiftLee
by Antoine van der Lee
1w ago
Statistical significance tells you whether the result from an experiment is likely attributable to the specific change you did. It’s an essential quantification when running app experiments, and it prevents you from concluding too early about a change you’ve made. I’ve been running hundreds of experiments throughout my career and only a few of the … → The post Statistical significance and its importance with app experiments appeared first on SwiftLee ..read more
Visit website
Identifiable protocol in SwiftUI explained with code examples
SwiftLee
by Antoine van der Lee
2w ago
The Identifiable protocol in SwiftUI allows you to add a unique object identity. The protocol requires a single ID property of any hashable type, making it a flexible protocol for all kinds of instances. While it’s a relatively simple protocol, a few possible edge cases can cause unexpected bugs in your SwiftUI code. Therefore, it’s … → The post Identifiable protocol in SwiftUI explained with code examples appeared first on SwiftLee ..read more
Visit website
Key press events detection in SwiftUI
SwiftLee
by Antoine van der Lee
3w ago
Key press events detection in SwiftUI allows you to respond to a keyboard key like return (enter), shift, command, and more. While mostly Mac apps use keyboard events, you must consider adding support for iPad apps since external keyboards can be used. SwiftUI offers several modifiers to listen to key press events, making it effortless … → The post Key press events detection in SwiftUI appeared first on SwiftLee ..read more
Visit website
The power of consistency in side projects
SwiftLee
by Antoine van der Lee
1M ago
The success of your side projects can be mixed, but consistency brings power to your results. It’s often easier to start a new project when results are disappointing rather than sticking to that high-potential project you’ve always believed in. I’ve been developing a few side projects over the years but managed to stay away from … → The post The power of consistency in side projects appeared first on SwiftLee ..read more
Visit website
Test-Driven Development (TDD) for bug fixes in Swift
SwiftLee
by Antoine van der Lee
1M ago
Test-driven development (TDD) is a technique that requires you first to write a failing test before you start implementing a solution. While it’s a technique developers use during general development, there’s a way to apply it only for bug fixes. Finding out about a bug can already be disappointing, but finding out about a bug … → The post Test-Driven Development (TDD) for bug fixes in Swift appeared first on SwiftLee ..read more
Visit website
Third-party libraries acknowledgments using a Settings bundle
SwiftLee
by Antoine van der Lee
1M ago
Third-party libraries help developers build apps faster but often come with a license. The MIT license is likely the most common, but there are many others that, together, require you to acknowledge the usage of the library in return for getting free access. I’m not going to dive deep into the details of each license … → The post Third-party libraries acknowledgments using a Settings bundle appeared first on SwiftLee ..read more
Visit website
Extensions in Swift: How and when to use them
SwiftLee
by Antoine van der Lee
2M ago
Extensions in Swift allow you to extend an existing class, struct, enumeration, or protocol with new functionality. Whether it’s a custom type defined by you or a current type inside of a framework, extensions can create custom accessors and enhance the types you work with. So-called retroactive modeling allows you to extend types for which … → The post Extensions in Swift: How and when to use them appeared first on SwiftLee ..read more
Visit website
How to use @ScaledMetric in SwiftUI for Dynamic Type support
SwiftLee
by Antoine van der Lee
2M ago
The @ScaledMetric property wrapper in SwiftUI allows you to adopt custom values to dynamic type settings. Your custom values will scale proportionally whenever the user changes the dynamic type setting. While elements like text scale are automatically based on the Dynamic Type setting, other values like padding or image sizes might not. Connecting these to … → The post How to use @ScaledMetric in SwiftUI for Dynamic Type support appeared first on SwiftLee ..read more
Visit website
App Preview Videos Capturing using the Xcode simulator
SwiftLee
by Antoine van der Lee
2M ago
App Preview Videos allow you to increase the visibility of your app in the App Store. While it’s best to validate whether it leads to higher conversions, it’s certain a moving demo will catch the attention quicker. Creating a qualitative App Preview Video can be time-consuming, especially since Apple has several specifications to which your … → The post App Preview Videos Capturing using the Xcode simulator appeared first on SwiftLee ..read more
Visit website

Follow SwiftLee on FeedSpot

Continue with Google
Continue with Apple
OR