ISSUE-005 - Emulating an iOS toggle switch and hooked it all up. Good practice.

Think there is some improvements I can make, though. The toggle circle on iOS has the drop shadow - not the body (with an inset shadow). But because I'm using absolute positioning the shadow overflows outside the the toggle body. So. I'll need to switch to using some other positioning rule
This commit is contained in:
Kyle Geib committed 2022-01-10 17:28:34 -05:00
1 parent 7c2654ba51
commit 3151c58d9d
14 files changed
+212 -14

No files matched your search

+11
View File
@@ -1,7 +1,9 @@
export type RootState = {
pageDimensions: PageDimensions,
workspace: Workspace,
};
// Page Dimensions
export type PageDimensions = {
menu: MenuDimensions,
};
@@ -9,3 +11,12 @@ export type PageDimensions = {
export type MenuDimensions = {
height: number,
};
// Workspace
export type Workspace = {
workspaceId: WorkspaceId,
animatedBG: AnimatedBG,
};
export type WorkspaceId = string;
export type AnimatedBG = boolean;