-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ViewGraph implementation (#58)
* Update GraphHost preference * Update EmptyView * Add LayoutDirection implementation * Add SafeAreaInsets API * Add RootGeometry * Update ViewGraph instantiateOutputs * Fix Linux build issue
- Loading branch information
Showing
16 changed files
with
559 additions
and
33 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
--acronyms ID,URL,UUID | ||
--allman false | ||
--anonymousforeach convert | ||
--assetliterals visual-width | ||
--asynccapturing | ||
--beforemarks | ||
--binarygrouping 4,8 | ||
--categorymark "MARK: %c" | ||
--classthreshold 0 | ||
--closingparen balanced | ||
--closurevoid remove | ||
--commas always | ||
--conflictmarkers reject | ||
--decimalgrouping 3,6 | ||
--elseposition same-line | ||
--emptybraces no-space | ||
--enumnamespaces always | ||
--enumthreshold 0 | ||
--exponentcase lowercase | ||
--exponentgrouping disabled | ||
--extensionacl on-declarations | ||
--extensionlength 0 | ||
--extensionmark "MARK: - %t + %c" | ||
--fractiongrouping disabled | ||
--fragment false | ||
--funcattributes preserve | ||
--generictypes | ||
--groupedextension "MARK: %c" | ||
--guardelse auto | ||
--header ignore | ||
--hexgrouping 4,8 | ||
--hexliteralcase uppercase | ||
--ifdef no-indent | ||
--importgrouping alpha | ||
--indent 4 | ||
--indentcase false | ||
--indentstrings false | ||
--lifecycle | ||
--lineaftermarks true | ||
--linebreaks lf | ||
--markcategories true | ||
--markextensions always | ||
--marktypes always | ||
--maxwidth none | ||
--modifierorder | ||
--nevertrailing | ||
--nospaceoperators | ||
--nowrapoperators | ||
--octalgrouping 4,8 | ||
--onelineforeach ignore | ||
--operatorfunc spaced | ||
--organizetypes actor,class,enum,struct | ||
--patternlet hoist | ||
--ranges spaced | ||
--redundanttype inferred | ||
--self remove | ||
--selfrequired | ||
--semicolons inline | ||
--shortoptionals always | ||
--smarttabs enabled | ||
--someany false | ||
--stripunusedargs always | ||
--structthreshold 0 | ||
--swiftversion 5.10 | ||
--tabwidth unspecified | ||
--throwcapturing | ||
--trailingclosures | ||
--trimwhitespace nonblank-lines | ||
--typeattributes preserve | ||
--typeblanklines remove | ||
--typemark "MARK: - %t" | ||
--varattributes preserve | ||
--voidtype void | ||
--wraparguments preserve | ||
--wrapcollections preserve | ||
--wrapconditions preserve | ||
--wrapeffects preserve | ||
--wrapenumcases always | ||
--wrapparameters default | ||
--wrapreturntype preserve | ||
--wrapternary default | ||
--wraptypealiases preserve | ||
--xcodeindentation disabled | ||
--yodaswap always | ||
--disable blankLineAfterImports,wrapMultilineStatementBraces | ||
--enable acronyms,blankLinesBetweenImports |
This file contains 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
This file contains 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
13 changes: 13 additions & 0 deletions
13
Sources/OpenSwiftUI/Core/Modifier/ViewModifier/SafeAreaInsetsModifier.swift
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// ViewBuilder.swift | ||
// OpenSwiftUI | ||
// | ||
// Audited for RELEASE_2023 | ||
// Status: WIP | ||
|
||
struct _SafeAreaInsetsModifier: PrimitiveViewModifier/*, MultiViewModifier*/ { | ||
var elements: [SafeAreaInsets.Element] | ||
var nextInsets: SafeAreaInsets.OptionalValue? | ||
|
||
var insets: EdgeInsets = .init() // FIXME | ||
} |
This file contains 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
Oops, something went wrong.