Skip to content

Commit bb9dfaa

Browse files
committed
update demo of display order
1 parent d18184b commit bb9dfaa

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Demo/Shared/Demos/DisplayTypeDemo.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,11 @@ extension DisplayTypeDemo {
102102
func generateContainerView() -> some View {
103103
var size: CGSize = .zero
104104
var text: LocalizedStringKey = ""
105-
var opacity = 0.8
105+
let opacity = 0.9
106106
var offset: CGSize = .zero
107107
switch displayType {
108108
case .stacking:
109109
offset = .init(width: CGFloat.random(in: -30...30), height: CGFloat.random(in: -30...30) + 100)
110-
opacity = 0.6
111110
text = "DismissForStacking"
112111
size = .init(width: 100, height: 100)
113112
case .vertical:

Demo/Shared/en.lproj/Localizable.strings

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
"DismissForHorizontal" = "Tap or Swipe Left";
3838
"SliderOfSpace %@" = "spacing between views %@";
3939
"ContainerMoreInfo" = "All container properties can be dynamically adjusted expect for name and queue type";
40+
"ascending" = "Display on top";
41+
"descending" = "Display on bottom";
4042

4143
// MARK: - View Configuration
4244

Demo/Shared/zh-Hans.lproj/Localizable.strings

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
"DismissForHorizontal" = "点击或左划";
3838
"SliderOfSpace %@" = "视图间距 %@";
3939
"ContainerMoreInfo" = "除了名称和队列类型之外,容器的其他属性都可以动态地调整。";
40+
"ascending" = "新视图在最上层";
41+
"descending" = "新视图在最下层";
4042

4143
// MARK: - View Configuration
4244

0 commit comments

Comments
 (0)