Swift
92.7K views | +0 today

Tabs and pages in SwiftUI

From swiftwithmajid.com

This week we will talk about creating tabs and pager views in SwiftUI. TabView gained superpower during WWDC20. We can now use it across all the Apple platforms to build tabbed and paged user experiences with SwiftUI out of the box.
No comment yet.

Color within Constraints. A scalable color system for digital… | by Linzi Berry | Tap to Dismiss | Sep, 2020

From medium.com

On the surface color seems simple, but getting 100+ designers and engineers to follow guidelines that are a part of literally everything they make is a huge undertaking. To put it in perspective…
No comment yet.

Adding Voiceover To Carousel Components | by Hannah Billingsley-Dadd | BBC Design + Engineering | Sep, 2020

From medium.com

In a forthcoming version of the BBC News app we will be introducing a new form of our story carousels. The carousel will be a flexible component that can appear anywhere in the app, including the…
No comment yet.

The State of SwiftUI | steipete's blog

From steipete.com

Let’s look at SwiftUI in iOS 14 and macOS Big Sur by evaluating Apple’s Fruta sample app.
No comment yet.

Building an Expandable List Using UICollectionView: Part 1

From swiftsenpai.com

Learn how to create an expandable list effectively using UICollectionView and NSDiffableDataSourceSectionSnapshot in iOS 14.
No comment yet.

SwiftUI 2.0: The Future is Declarative | Infinum

From infinum.com

Has SwiftUI overcome its initial shortcomings and brought significant improvements in the version 2.0?
No comment yet.

3 lesser-known ways of using Swift enums

From sarunw.com

Three language features around Swift enumeration that you might not aware of.
No comment yet.

Dark side of extensions in Swift

From dmtopolog.com

Extension is a very powerful concept in Swift. It has several different applications in our code: we can extend the data types we don’t own, we can extend our own ones, we can separate the functionality and protocol conformance. Each one of them gives us additional capabilities and extra powers, but some of them come together with drawbacks which we have to consider.
No comment yet.

PreferenceKey’s reduce method demystified

From fivestars.blog

SwiftUI’s PreferenceKey declaration is as following:
No comment yet.

Building widgets in SwiftUI

From swiftwithmajid.com

This week I want to talk to you about home-screen widgets in iOS 14. I’ve built several widget collections for my apps, and it is a perfect time to share with you that experience. Today we will learn all about building and updating widgets with SwiftUI.
No comment yet.

Building modern collection views in Swift

From www.swiftbysundell.com

An overview of the key new UICollectionView APIs introduced in iOS 13 and 14, such as compositional layouts, diffable data sources, and cell registrations.
No comment yet.

Conditional view modifiers

From fivestars.blog

When working with SwiftUI views, sometimes we would like to apply different modifiers based on conditions/states:
No comment yet.

New in iOS 14: ColorPicker, DatePicker, Menus and Actions

From www.appcoda.com

In iOS 14, Apple released several updates for UIKit including the new ColorPicker and the updated DatePicker. We will look into their usage in this tutorial.
No comment yet.

Replacing UIImagePickerController with PHPickerViewController

From ohmyswift.com

Almost every app requires photos and video access these days. Before iOS 14.0, the iOS developers used UIImagePickerController to access the items from the user’s media library. From iOS 14.0, Apple is providing its developers a brand new way to select images or videos from their apps using PHPickerViewController
No comment yet.

iOS 14 UISplitViewController: 5 Issues That You May Run Into | by Rostyslav Dovhaliuk | The Startup | Sep, 2020

From medium.com

The final build of iOS 14.0 will be released soon, and it’s about time to make sure our apps are running great on iOS 14. This year Apple introduced major changes in UISplitViewController, which are…
No comment yet.

Blog/ep4.md at master · ianleon/Blog ·

From github.com

Contribute to ianleon/Blog development by creating an account on GitHub.
No comment yet.

LostMoa - Save Custom Codable Types in AppStorage or SceneStorage

From lostmoa.com

Add RawRepresentable conformance to a custom type that represents a setting or a view state in SwiftUI to be able to save it in AppStorage or SceneStorage.
No comment yet.

Displaying recursive data using OutlineGroup in SwiftUI

From swiftwithmajid.com

This week we will talk about another excellent UI component called OutlineGroup. Apple released OutlineGroup during the WWDC20 side-by-side with other great things, including grids, menus, and toolbars. I already covered them in my previous posts. And finally, today is time to talk about OutlineGroup and DisclosureGroup that handles the expanding behavior.
No comment yet.

SwiftUI ScrollView offset

From fivestars.blog

Searching online for “SwiftUI ScrollView offset” yields to plenty of discussions on how to control the scroll position of a ScrollView: with iOS 14 SwiftUI has gained ScrollViewReader, covered here, which makes the old introspection hacks obsolete.
No comment yet.

Logging in Swift | steipete's blog

From steipete.com

Exploring the new Swift Logger struct, OSLogStore and streaming access to OSLog.
No comment yet.

Making properties overridable only in debug builds

From www.swiftbysundell.com

Implementing a property wrapper to enable certain properties to be overridden only in debug mode.
No comment yet.