Member-only story

Learning Android Development

Enable SwiftUI Views Sharing Across Packages Without Dependency Constraint

An Aligned Autonomy Scaling Mobile Development Approach

Photo by Christian Stahl on Unsplash

Imagine you have multiple teams working on different screens within your app, with each team responsible for its own screen. Ideally, these screens should be completely independent from one another. However, there are situations where one team may need to load a view created by another team, as shown below.

This article will explore how to achieve this in SwiftUI, enabling seamless cross-sharing of views without dependencies.

I’ll also provide insights on implementing a similar approach in Jetpack Compose which can be accessed below

1. Cross Tab View Sharing

Here’s a scenario involving two screens, each with multiple tabs. Each screen manages its own set of tabs, except for one tab that belongs to another team.

--

--

Mobile App Development Publication
Mobile App Development Publication

Published in Mobile App Development Publication

Sharing iOS, Android and relevant Mobile App Development Technology and Learning

Elye - A One Eye Dev By His Grace
Elye - A One Eye Dev By His Grace

Written by Elye - A One Eye Dev By His Grace

Sharing Software Learning, Life and Faith Journey

No responses yet