Skip to content

Commit 015c7b3

Browse files
committed
Added layout values.
1 parent 42a4045 commit 015c7b3

File tree

3 files changed

+28
-12
lines changed

3 files changed

+28
-12
lines changed

Example App/NativeUIKit.xcodeproj/xcshareddata/xcschemes/watchOS Example.xcscheme

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,33 +54,46 @@
5454
debugDocumentVersioning = "YES"
5555
debugServiceExtension = "internal"
5656
allowLocationSimulation = "YES">
57-
<BuildableProductRunnable
58-
runnableDebuggingMode = "0">
57+
<RemoteRunnable
58+
runnableDebuggingMode = "2"
59+
BundleIdentifier = "com.apple.Carousel"
60+
RemotePath = "/(null)">
5961
<BuildableReference
6062
BuildableIdentifier = "primary"
6163
BlueprintIdentifier = "F4C33E2F26C932C8001A28B1"
6264
BuildableName = "watchOS Example.app"
6365
BlueprintName = "watchOS Example"
6466
ReferencedContainer = "container:NativeUIKit.xcodeproj">
6567
</BuildableReference>
66-
</BuildableProductRunnable>
68+
</RemoteRunnable>
6769
</LaunchAction>
6870
<ProfileAction
6971
buildConfiguration = "Release"
7072
shouldUseLaunchSchemeArgsEnv = "YES"
7173
savedToolIdentifier = ""
7274
useCustomWorkingDirectory = "NO"
7375
debugDocumentVersioning = "YES">
74-
<BuildableProductRunnable
75-
runnableDebuggingMode = "0">
76+
<RemoteRunnable
77+
runnableDebuggingMode = "2"
78+
BundleIdentifier = "com.apple.Carousel"
79+
RemotePath = "/(null)">
7680
<BuildableReference
7781
BuildableIdentifier = "primary"
7882
BlueprintIdentifier = "F4C33E2F26C932C8001A28B1"
7983
BuildableName = "watchOS Example.app"
8084
BlueprintName = "watchOS Example"
8185
ReferencedContainer = "container:NativeUIKit.xcodeproj">
8286
</BuildableReference>
83-
</BuildableProductRunnable>
87+
</RemoteRunnable>
88+
<MacroExpansion>
89+
<BuildableReference
90+
BuildableIdentifier = "primary"
91+
BlueprintIdentifier = "F4C33E2F26C932C8001A28B1"
92+
BuildableName = "watchOS Example.app"
93+
BlueprintName = "watchOS Example"
94+
ReferencedContainer = "container:NativeUIKit.xcodeproj">
95+
</BuildableReference>
96+
</MacroExpansion>
8497
</ProfileAction>
8598
<AnalyzeAction
8699
buildConfiguration = "Debug">

Sources/NativeUIKit/NativeLayout.swift

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,20 @@
2222
#if canImport(UIKit) && (os(iOS))
2323
import UIKit
2424

25-
enum NativeLayout {
25+
public enum NativeLayout {
2626

27-
enum Sizes {
27+
public enum Sizes {
2828

29-
static var actionable_area_maximum_width: CGFloat { 408 }
30-
static var not_actionable_area_maximum_width: CGFloat { 382 }
29+
public static var actionable_area_maximum_width: CGFloat { 408 }
30+
public static var not_actionable_area_maximum_width: CGFloat { 382 }
3131
}
3232

33-
enum Spaces {
33+
public enum Spaces {
3434

35-
enum Scroll {
35+
public static var full_screen_horizontal_margins: CGFloat { 16 }
36+
public static var modal_screen_horizontal_margins: CGFloat { 20 }
37+
38+
public enum Scroll {
3639

3740
static var bottom_inset_reach_end: CGFloat { 36 }
3841
static var bottom_inset_when_keyboard_can_appear: CGFloat { 32 }

0 commit comments

Comments
 (0)