Skip to content

Commit

Permalink
update demo of display order
Browse files Browse the repository at this point in the history
  • Loading branch information
fatbobman committed Apr 8, 2022
1 parent d18184b commit bb9dfaa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Demo/Shared/Demos/DisplayTypeDemo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,11 @@ extension DisplayTypeDemo {
func generateContainerView() -> some View {
var size: CGSize = .zero
var text: LocalizedStringKey = ""
var opacity = 0.8
let opacity = 0.9
var offset: CGSize = .zero
switch displayType {
case .stacking:
offset = .init(width: CGFloat.random(in: -30...30), height: CGFloat.random(in: -30...30) + 100)
opacity = 0.6
text = "DismissForStacking"
size = .init(width: 100, height: 100)
case .vertical:
Expand Down
2 changes: 2 additions & 0 deletions Demo/Shared/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
"DismissForHorizontal" = "Tap or Swipe Left";
"SliderOfSpace %@" = "spacing between views %@";
"ContainerMoreInfo" = "All container properties can be dynamically adjusted expect for name and queue type";
"ascending" = "Display on top";
"descending" = "Display on bottom";

// MARK: - View Configuration

Expand Down
2 changes: 2 additions & 0 deletions Demo/Shared/zh-Hans.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
"DismissForHorizontal" = "点击或左划";
"SliderOfSpace %@" = "视图间距 %@";
"ContainerMoreInfo" = "除了名称和队列类型之外,容器的其他属性都可以动态地调整。";
"ascending" = "新视图在最上层";
"descending" = "新视图在最下层";

// MARK: - View Configuration

Expand Down

0 comments on commit bb9dfaa

Please sign in to comment.