Draft
Conversation
eRDe33
reviewed
Mar 20, 2026
Member
eRDe33
left a comment
There was a problem hiding this comment.
Za me super, napadla me tam jenom ta jedna drobnost. 👍
| #endif | ||
| ``` | ||
|
|
||
| Keep `#if` blocks small and push them to the edges of your view hierarchy. Wrapping an entire screen in `#if` is a sign the screen should be split into platform-specific files instead. |
Member
There was a problem hiding this comment.
Mozna bych tu explicitne zminil, ze je to mozne i s jednim multiplatformnim targetem. Prvni co me totiz napadlo bylo "Ha, ale platform-specific files se da udelat jenom pomoci pridani do ruznych targetu.", ale neni to pravda, i kdyz mas pouze jeden multiplatformni target, i tak muzes ve File Inspectoru nastavit spravne Target Membership pouze konkretni platformne.
Suggested change
| Keep `#if` blocks small and push them to the edges of your view hierarchy. Wrapping an entire screen in `#if` is a sign the screen should be split into platform-specific files instead. | |
| Keep #if blocks small and push them to the edges of your view hierarchy. Wrapping an entire screen in #if is a sign the screen should be split into platform-specific files instead. | |
| Even with a single multiplatform target, you can control which platforms a file compiles for via Target Membership in the File Inspector — no need for a separate target just to achieve per-file platform separation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new SwiftUI Multiplatform page to the iOS section of the Engineering Handbook. Covers platform specifics, Xcode setup, navigation paradigms (
TabViewvsNavigationSplitView), adaptive components, and Liquid Glass — intended as both internal reference and client upsell material.Changes
ios_multiplatform.mdwith sections on platform specifics, Xcode setup, platform-specific code patterns, navigation paradigms, detail presentation, search, adaptiveTable, Liquid Glass, and when to use whichindex.mdandmkdocs.ymlupdated to include the new pageNotes
TabView (.sidebarAdaptable)patterns require iOS 18 / macOS 15+; Liquid Glass requires iOS 26 / macOS 26+SceneDelegate, image pickers,TextStyle/Fontsystem)