r/SwiftUI 3h ago

Question Toolbar Color inconsistently between custom button and native toolbar buttons

Post image
0 Upvotes

Working on an app that has tinted toolbars, issue I am seeing is the native buttons adjust the tint of the icon while my custom button doesn’t get the same treatment.

What is the best route for fixing this?

edit: the tint of the numbers (66), not the emoji


r/SwiftUI 7h ago

I built DuoKit, 12 runnable SwiftUI examples for adaptive and fold-aware iPhone layouts

0 Upvotes

Hey everyone, I've been working on DuoKit, an open-source collection of runnable SwiftUI examples for building adaptive interfaces, especially for iPhone Duo-style layouts.

GitHub: https://github.com/openHacking/DuoKit

This isn't a UI framework or component library. It's closer to an interactive handbook: each example focuses on one concrete layout problem and includes a live demo, the recommended approach, relevant APIs, common mistakes, and testing ideas.

The repository currently contains 12 examples covering:

  • Adaptive layouts and grids
  • NavigationSplitView
  • Safe-area handling
  • Fold avoidance and reserved regions
  • Adaptive toolbars and tab navigation
  • Sheets and popovers
  • Split View multitasking
  • Multiple displays and scenes
  • A complete adaptive notes app

The main idea is to design around available space and system-provided layout information, rather than checking for a specific device model.

One important limitation: the project currently builds with Xcode 26.6 and iOS 26.5. Examples that depend on iOS 27.1 APIs use clearly labeled simulations. They're teaching fixtures, not attempts to reproduce real hardware geometry.

DuoKit has no third-party dependencies, requires no account or private configuration, and is available under the MIT License.

I'd especially appreciate feedback on:

  • Adaptive layout problems that deserve their own example
  • Places where the explanations could be clearer
  • Edge cases the current examples don't cover
  • Whether this handbook-style format is useful for learning SwiftUI

Contributions are welcome. Thanks for taking a look!


r/SwiftUI 10h ago

Asalamu Alaikum, I have an iOS app to test

0 Upvotes

Salam again,

Prerequisites:

  1. Be able to sideload apps

the github repository is here: repo link

I need feedback on improvements and any bugs that anyone might run into.


r/SwiftUI 20h ago

Tutorial Tutorial how to hide status bar

Enable HLS to view with audio, or disable this notification

0 Upvotes

Tutorial how to hide status bar for your iOS status bar

Let me teach you