Swift
92.7K views | +0 today

How expensive is DateFormatter

From sarunw.com

If you are working on iOS for long enough, there is a chance that you might have known that DateFormatter is expensive, but what is costly about DateFormatter? Let's find out in this article.
No comment yet.

Let’s build @State

From fivestars.blog

Shout out to Mike Ash for the original, historic Let's build NSObject article.
No comment yet.

Styling custom SwiftUI views using environment

From swiftwithmajid.com

One of my favorite features of SwiftUI is styling. I love the idea of style protocols provided by every view and sharing them using the environment. I have already covered most of the style protocols for SwiftUI provided views in my previous posts. But what about custom views? This week we will learn how to share styling using environment for our custom views.
No comment yet.

SwiftUI Tab View: Building a Paged Scrolling View

From www.appcoda.com

In this tutorial, we will show you how to create a paged scrolling view using SwiftUI tab view. You will also learn how to customize the paging indicator.
No comment yet.

SwiftUI and UIKit interoperability - Part 1

From www.swiftbysundell.com

A closer look at how SwiftUI and UIKit can be combined in various ways, starting with how we can bring increasingly complex UIKit-based views and view controllers into the declarative world of SwiftUI.
No comment yet.

App Clips for iOS: Getting Started

From www.raywenderlich.com

In this tutorial, you’ll learn how to design and implement App Clips.
No comment yet.

Scaling custom fonts automatically with Dynamic Type

From sarunw.com

Font is an essential part of an app. A good selection of font would make your app stand out from the crowd. But whatever fonts you choose, you have to make sure it doesn't lose its core function, readability. You might feel reluctant to use a custom font in the past because you might lose the benefit of dynamic type goodness that Apple provides with their system font. Since iOS 11, this is no longer the case. You can easily use your custom font dynamic type.
No comment yet.

SwiftUI View Lifecycle

From www.vadimbulavin.com

Learn the three phases of SwiftUI view lifecycle: Appearing, Updating and Disappearing.
No comment yet.

Swift for TensorFlow: Reading your dataset

From www.47deg.com

Learn how to read the examples in your dataset for training and testing using Swift for TensorFlow.
No comment yet.

Changing Text in iOS Lottie Animation

From swiftsenpai.com

In this article, let's learn how to use a Lottie text provider for text replacement. You can also learn how to create a custom text provider.
No comment yet.

Swift overloading and @_disfavoredOverload

From fivestars.blog

Many thanks to Stefano De Carolis for the tip!
No comment yet.

Lazy Sequences in Swift • Andy Ibanez

From www.andyibanez.com

Learn about lazy sequences in Swift and how to use them.
No comment yet.

Swift for TensorFlow: Describing your model

From www.47deg.com

Learn how you can describe a simple Neural Network using Swift for TensorFlow.
No comment yet.

DispatchSource: Detecting changes in files and folders in Swift

From swiftrocks.com

The DispatchSource family of types from GCD contains a series of objects that are capable of monitoring OS-related events. In this article, we'll see how to use DispatchSource to monitor a log file and create a debug-only view that shows the app's latest logs.
No comment yet.

Escaping closures —

From swiftramen.com

Escaping closures can require reference to `self`, and end up creating reference cycles since they capture `self` when they are stored for use at a later time.
No comment yet.

Extending Combine with convenience APIs

From www.swiftbysundell.com

How custom Combine operators and convenience APIs can be implemented using extensions, and how doing so can let us eliminate common sources of boilerplate when implementing things like networking and data validation.
No comment yet.

Build content-friendly layouts

From fivestars.blog

In Adaptive SwiftUI views we’ve covered many approaches on how to make our layouts responsive to different external factors such as size classes, dynamic type, and more.
No comment yet.

How to display Vision bounding boxes

From machinethink.net

What to do if the predicted bounding boxes are drawn in the wrong place
No comment yet.

10 Key Mobile Usability Issues. 10 critical usability issues and… | by Nick Babich | Nov, 2020 | UX Planet

From uxplanet.org

Clutter is one of the worst enemies of good design. By cluttering your interface, you overload users with too much information. In comparison with desktop screens, mobile devices have a relatively…
No comment yet.

Boris-Em/ColorKit: Advanced color manipulation for iOS.

From github.com

Advanced color manipulation for iOS. Contribute to Boris-Em/ColorKit development by creating an account on GitHub.
No comment yet.

Formatted Localizable Strings

From kean.blog

Using XMLParser and NSAttributedString to add support for basic formatting in localizable strings
No comment yet.

Testing the UI without UI Testing in Swift

From masilotti.com

Feature tests: three techniques to try before reaching for XCUITest.
No comment yet.

How to deal with modal views (a.k.a. sheets) with SwiftUI

From kristaps.me

Kristaps Grinbergs - experienced Apple tech software engineer - iOS, tvOS, watchOS, macOS.
No comment yet.

UIStackView padding

From sarunw.com

Learn how to add padding to your stack view's content.
No comment yet.