-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Update experiment/test - `swift-programmatic-modal/AdaptiveModal`.
- Loading branch information
1 parent
ff6cad9
commit ec5a7e1
Showing
11 changed files
with
295 additions
and
77 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
experiments/swift-programmatic-modal/AdaptiveModal/AdaptiveModalClampingConfig.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,44 @@ | ||
// | ||
// AdaptiveModalClampingConfig.swift | ||
// swift-programmatic-modal | ||
// | ||
// Created by Dominic Go on 5/28/23. | ||
// | ||
|
||
import Foundation | ||
|
||
struct AdaptiveModalClampingConfig { | ||
static let `default`: Self = .init(); | ||
|
||
let shouldClampModalInitHeight: Bool; | ||
let shouldClampModalLastHeight: Bool; | ||
|
||
let shouldClampModalInitWidth: Bool; | ||
let shouldClampModalLastWidth: Bool; | ||
|
||
let shouldClampModalInitX: Bool; | ||
let shouldClampModalLastX: Bool; | ||
|
||
let shouldClampModalInitY: Bool; | ||
let shouldClampModalLastY: Bool; | ||
|
||
init( | ||
shouldClampModalInitHeight: Bool = false, | ||
shouldClampModalLastHeight: Bool = false, | ||
shouldClampModalInitWidth: Bool = false, | ||
shouldClampModalLastWidth: Bool = false, | ||
shouldClampModalInitX: Bool = false, | ||
shouldClampModalLastX: Bool = false, | ||
shouldClampModalInitY: Bool = false, | ||
shouldClampModalLastY: Bool = false | ||
) { | ||
self.shouldClampModalInitHeight = shouldClampModalInitHeight; | ||
self.shouldClampModalLastHeight = shouldClampModalLastHeight; | ||
self.shouldClampModalInitWidth = shouldClampModalInitWidth; | ||
self.shouldClampModalLastWidth = shouldClampModalLastWidth; | ||
self.shouldClampModalInitX = shouldClampModalInitX; | ||
self.shouldClampModalLastX = shouldClampModalLastX; | ||
self.shouldClampModalInitY = shouldClampModalInitY; | ||
self.shouldClampModalLastY = shouldClampModalLastY; | ||
} | ||
}; |
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
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
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.