Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch 4.0.0 #160

Merged
merged 407 commits into from
Nov 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
407 commits
Select commit Hold shift + click to select a range
0bd6f3e
1
FulcrumOne Nov 9, 2024
dd4205e
1
FulcrumOne Nov 9, 2024
2b1a107
1
FulcrumOne Nov 9, 2024
47206ac
1
FulcrumOne Nov 9, 2024
362207f
1
FulcrumOne Nov 9, 2024
077a1e9
1
FulcrumOne Nov 9, 2024
deb7f6a
1
FulcrumOne Nov 9, 2024
807e2f5
1
FulcrumOne Nov 10, 2024
830e890
1
FulcrumOne Nov 10, 2024
7d6f03e
1
FulcrumOne Nov 10, 2024
a21a024
1
FulcrumOne Nov 10, 2024
b4a8876
1
FulcrumOne Nov 10, 2024
2083419
1
FulcrumOne Nov 10, 2024
7f9327e
1
FulcrumOne Nov 10, 2024
a86e7c9
1
FulcrumOne Nov 10, 2024
505a3ed
1
FulcrumOne Nov 10, 2024
7a47b84
1
FulcrumOne Nov 10, 2024
8a15594
1
FulcrumOne Nov 10, 2024
1a4ac90
1
FulcrumOne Nov 10, 2024
7ee5650
1
FulcrumOne Nov 10, 2024
a901289
1
FulcrumOne Nov 10, 2024
4c0c852
1
FulcrumOne Nov 10, 2024
77914c6
1
FulcrumOne Nov 10, 2024
cab2b41
1
FulcrumOne Nov 10, 2024
73b72a6
1
FulcrumOne Nov 10, 2024
7786036
1
FulcrumOne Nov 10, 2024
62ac4b5
1
FulcrumOne Nov 10, 2024
44c12e6
1
FulcrumOne Nov 10, 2024
af8d5bd
DANGER
FulcrumOne Nov 10, 2024
0390a03
1
FulcrumOne Nov 11, 2024
05e8534
1
FulcrumOne Nov 11, 2024
6d1f06b
1
FulcrumOne Nov 11, 2024
99b3b4d
1
FulcrumOne Nov 11, 2024
68d389f
1
FulcrumOne Nov 11, 2024
56efc45
1
FulcrumOne Nov 11, 2024
fd72c76
1
FulcrumOne Nov 11, 2024
33f56c9
1
FulcrumOne Nov 12, 2024
636c282
1
FulcrumOne Nov 12, 2024
1560be4
1
FulcrumOne Nov 12, 2024
44691a0
1
FulcrumOne Nov 12, 2024
435ce9c
1
FulcrumOne Nov 12, 2024
b817b0e
1
FulcrumOne Nov 12, 2024
0072634
1
FulcrumOne Nov 12, 2024
c1c1bf3
1
FulcrumOne Nov 12, 2024
16ab67c
1
FulcrumOne Nov 12, 2024
baf2da1
1
FulcrumOne Nov 12, 2024
2ef4190
1
FulcrumOne Nov 12, 2024
f21bc1b
1
FulcrumOne Nov 12, 2024
d303917
1
FulcrumOne Nov 12, 2024
95e71af
1
FulcrumOne Nov 12, 2024
ca4319e
1
FulcrumOne Nov 12, 2024
756a5d2
1
FulcrumOne Nov 12, 2024
e617434
1
FulcrumOne Nov 12, 2024
f7acf7f
DANGER
FulcrumOne Nov 12, 2024
1bf661b
1
FulcrumOne Nov 12, 2024
47817cd
1
FulcrumOne Nov 12, 2024
cd8ca47
1
FulcrumOne Nov 12, 2024
5b14e73
1
FulcrumOne Nov 12, 2024
a02dbe6
1
FulcrumOne Nov 12, 2024
f47a09b
1
FulcrumOne Nov 12, 2024
0bffd67
1
FulcrumOne Nov 12, 2024
cbb1047
1
FulcrumOne Nov 12, 2024
6d2507b
1
FulcrumOne Nov 12, 2024
d2c02b9
1
FulcrumOne Nov 12, 2024
1522e9b
1
FulcrumOne Nov 12, 2024
c2570e6
1
FulcrumOne Nov 12, 2024
d14caf1
1
FulcrumOne Nov 12, 2024
d9a439d
1
FulcrumOne Nov 12, 2024
87c6625
DANGER
FulcrumOne Nov 13, 2024
1679d34
1
FulcrumOne Nov 13, 2024
f1f66d7
1
FulcrumOne Nov 13, 2024
ce2317f
1
FulcrumOne Nov 13, 2024
ae47f8f
1
FulcrumOne Nov 13, 2024
9f1bdfe
1
FulcrumOne Nov 13, 2024
920cfbf
1
FulcrumOne Nov 13, 2024
01a81c0
1
FulcrumOne Nov 13, 2024
db57ba2
1
FulcrumOne Nov 13, 2024
af89995
1
FulcrumOne Nov 13, 2024
bb7c8c5
1
FulcrumOne Nov 13, 2024
b64f20e
1
FulcrumOne Nov 13, 2024
4a9e69d
1
FulcrumOne Nov 13, 2024
86f757d
1
FulcrumOne Nov 13, 2024
502b8a8
1
FulcrumOne Nov 13, 2024
156886e
1
FulcrumOne Nov 13, 2024
29cc64a
1
FulcrumOne Nov 13, 2024
611228f
1
FulcrumOne Nov 13, 2024
e30a3d9
1
FulcrumOne Nov 13, 2024
6fdf0bc
1
FulcrumOne Nov 13, 2024
b189db3
1
FulcrumOne Nov 13, 2024
202e05c
1
FulcrumOne Nov 13, 2024
3f6859d
1
FulcrumOne Nov 13, 2024
fe1cc4d
1
FulcrumOne Nov 13, 2024
d60010f
1
FulcrumOne Nov 13, 2024
bdf2fae
1
FulcrumOne Nov 13, 2024
743cb13
1
FulcrumOne Nov 13, 2024
62374f9
1
FulcrumOne Nov 13, 2024
6ac432b
1
FulcrumOne Nov 13, 2024
c4fbb10
1
FulcrumOne Nov 13, 2024
e623943
1
FulcrumOne Nov 13, 2024
37a71d4
1
FulcrumOne Nov 13, 2024
faa91d2
1
FulcrumOne Nov 13, 2024
47c23ba
1
FulcrumOne Nov 13, 2024
cb0ffd3
DANGER
FulcrumOne Nov 13, 2024
ee5ad5e
1
FulcrumOne Nov 13, 2024
3c73959
1
FulcrumOne Nov 13, 2024
fe71bd4
1
FulcrumOne Nov 13, 2024
3e7a203
1
FulcrumOne Nov 14, 2024
9cbad15
1
FulcrumOne Nov 14, 2024
4d4c48f
1
FulcrumOne Nov 14, 2024
b62f6f9
1
FulcrumOne Nov 14, 2024
ea53285
1
FulcrumOne Nov 14, 2024
1e4b2f9
1
FulcrumOne Nov 14, 2024
852cbc9
1
FulcrumOne Nov 14, 2024
27f5d31
1
FulcrumOne Nov 14, 2024
dcfefe9
1
FulcrumOne Nov 14, 2024
45db5be
1
FulcrumOne Nov 14, 2024
29457cc
1
FulcrumOne Nov 14, 2024
f6e9587
1
FulcrumOne Nov 14, 2024
471659c
1
FulcrumOne Nov 14, 2024
7f17dd7
1
FulcrumOne Nov 14, 2024
cb6322d
1
FulcrumOne Nov 14, 2024
9f9bcf6
1
FulcrumOne Nov 14, 2024
51f8e77
1
FulcrumOne Nov 14, 2024
a608e1d
1
FulcrumOne Nov 14, 2024
a2b0498
1
FulcrumOne Nov 14, 2024
eec2a9e
1
FulcrumOne Nov 14, 2024
0763476
1
FulcrumOne Nov 14, 2024
ef4dc40
1
FulcrumOne Nov 14, 2024
62e8362
1
FulcrumOne Nov 14, 2024
5377dce
1
FulcrumOne Nov 14, 2024
ac20a47
1
FulcrumOne Nov 14, 2024
5221c74
1
FulcrumOne Nov 14, 2024
d063e26
1
FulcrumOne Nov 14, 2024
7367139
1
FulcrumOne Nov 14, 2024
f6f178b
1
FulcrumOne Nov 14, 2024
2b97fc0
1
FulcrumOne Nov 14, 2024
7381ce0
1
FulcrumOne Nov 14, 2024
1e18d9c
1
FulcrumOne Nov 14, 2024
581ca7f
1
FulcrumOne Nov 14, 2024
edff2ab
1
FulcrumOne Nov 14, 2024
2ba3ee5
1
FulcrumOne Nov 14, 2024
3aeebbd
1
FulcrumOne Nov 14, 2024
259e850
1
FulcrumOne Nov 14, 2024
f149ca6
1
FulcrumOne Nov 14, 2024
bd23a36
1
FulcrumOne Nov 14, 2024
7e79345
1
FulcrumOne Nov 14, 2024
a43b45b
1
FulcrumOne Nov 14, 2024
ad7d880
1
FulcrumOne Nov 14, 2024
851f045
1
FulcrumOne Nov 14, 2024
94a64ea
1
FulcrumOne Nov 14, 2024
8af6c8b
1
FulcrumOne Nov 14, 2024
f996829
1
FulcrumOne Nov 14, 2024
4b9028e
1
FulcrumOne Nov 14, 2024
6b00baf
1
FulcrumOne Nov 14, 2024
31bb69c
1
FulcrumOne Nov 14, 2024
2ec50e9
1
FulcrumOne Nov 14, 2024
a00c34f
1
FulcrumOne Nov 14, 2024
36ad749
1
FulcrumOne Nov 14, 2024
93c37dd
1
FulcrumOne Nov 14, 2024
b2af4d5
1
FulcrumOne Nov 14, 2024
f74633f
1
FulcrumOne Nov 14, 2024
40f3090
1
FulcrumOne Nov 14, 2024
6ca6acb
1
FulcrumOne Nov 14, 2024
788c986
1
FulcrumOne Nov 14, 2024
a558723
1
FulcrumOne Nov 14, 2024
e09444d
1
FulcrumOne Nov 14, 2024
09319ae
1
FulcrumOne Nov 14, 2024
6a4ad63
1
FulcrumOne Nov 14, 2024
73075e5
1
FulcrumOne Nov 14, 2024
f772271
1
FulcrumOne Nov 14, 2024
3fe6393
1
FulcrumOne Nov 14, 2024
33e943c
1
FulcrumOne Nov 14, 2024
bf97e7e
1
FulcrumOne Nov 14, 2024
7f115c1
1
FulcrumOne Nov 14, 2024
fcc06e5
1
FulcrumOne Nov 14, 2024
c78132b
1
FulcrumOne Nov 14, 2024
80bee3d
1
FulcrumOne Nov 14, 2024
469ae9a
1
FulcrumOne Nov 14, 2024
2565cc7
1
FulcrumOne Nov 14, 2024
aee4569
1
FulcrumOne Nov 14, 2024
46620f4
1
FulcrumOne Nov 14, 2024
ac76dc0
1
FulcrumOne Nov 14, 2024
21009eb
1
FulcrumOne Nov 14, 2024
5bfb3af
1
FulcrumOne Nov 14, 2024
2a0f235
1
FulcrumOne Nov 14, 2024
f1fac04
1
FulcrumOne Nov 14, 2024
7fa7be8
1
FulcrumOne Nov 14, 2024
660b40d
1
FulcrumOne Nov 14, 2024
5cdf079
1
FulcrumOne Nov 14, 2024
09b88a1
1
FulcrumOne Nov 14, 2024
f8a882d
1
FulcrumOne Nov 14, 2024
c187860
1
FulcrumOne Nov 14, 2024
32913b8
1
FulcrumOne Nov 14, 2024
50898d2
1
FulcrumOne Nov 14, 2024
8ebfa77
1
FulcrumOne Nov 14, 2024
55524e6
1
FulcrumOne Nov 14, 2024
8aa25d9
1
FulcrumOne Nov 14, 2024
736d2cb
1
FulcrumOne Nov 14, 2024
ccbc326
1
FulcrumOne Nov 15, 2024
e0a82b6
1
FulcrumOne Nov 15, 2024
9b67859
1
FulcrumOne Nov 15, 2024
16f5e7a
1
FulcrumOne Nov 15, 2024
1593b47
1
FulcrumOne Nov 15, 2024
702d669
1
FulcrumOne Nov 15, 2024
550218a
1
FulcrumOne Nov 15, 2024
8a21aea
1
FulcrumOne Nov 15, 2024
9bfc149
1
FulcrumOne Nov 15, 2024
c4c72da
1
FulcrumOne Nov 15, 2024
75d6219
1
FulcrumOne Nov 15, 2024
085e3d8
1
FulcrumOne Nov 15, 2024
8825633
1
FulcrumOne Nov 15, 2024
052d3dc
1
FulcrumOne Nov 15, 2024
fcde02a
1
FulcrumOne Nov 15, 2024
ece7af0
1
FulcrumOne Nov 15, 2024
6468bd7
1
FulcrumOne Nov 15, 2024
82c64c0
1
FulcrumOne Nov 15, 2024
6ab848d
1
FulcrumOne Nov 15, 2024
e482963
1
FulcrumOne Nov 15, 2024
2315558
1
FulcrumOne Nov 15, 2024
2750f4a
1
FulcrumOne Nov 15, 2024
9c9908f
1
FulcrumOne Nov 15, 2024
48b8269
1
FulcrumOne Nov 15, 2024
439621c
1
FulcrumOne Nov 15, 2024
b5ea047
1
FulcrumOne Nov 15, 2024
dc5a605
1
FulcrumOne Nov 15, 2024
ecc8a71
1
FulcrumOne Nov 15, 2024
170d1cc
1
FulcrumOne Nov 15, 2024
552fddb
1
FulcrumOne Nov 15, 2024
2b96b4b
1
FulcrumOne Nov 15, 2024
52498b3
1
FulcrumOne Nov 15, 2024
ef630e0
1
FulcrumOne Nov 15, 2024
3cf24d1
1
FulcrumOne Nov 15, 2024
45b6daf
1
FulcrumOne Nov 16, 2024
6ef2aa9
1
FulcrumOne Nov 16, 2024
d6e59e1
1
FulcrumOne Nov 16, 2024
bcea74e
1
FulcrumOne Nov 16, 2024
12284ec
1
FulcrumOne Nov 16, 2024
430fc71
1
FulcrumOne Nov 16, 2024
06af961
1
FulcrumOne Nov 16, 2024
9a7a9c9
1
FulcrumOne Nov 17, 2024
c3bea41
1
FulcrumOne Nov 17, 2024
12eae3a
1
FulcrumOne Nov 17, 2024
abf81a9
1
FulcrumOne Nov 17, 2024
10b2073
1
FulcrumOne Nov 17, 2024
a4d64ed
1
FulcrumOne Nov 17, 2024
59fedfa
1
FulcrumOne Nov 17, 2024
7e92b50
1
FulcrumOne Nov 17, 2024
3d793ad
1
FulcrumOne Nov 17, 2024
ade11eb
1
FulcrumOne Nov 17, 2024
b64536d
1
FulcrumOne Nov 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MijickPopups.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Pod::Spec.new do |s|
MijickPopups solves two seemingly contradictory problems - to allow developers to create fully customizable popup, and to make the process as simple as possible.
DESC

s.version = '3.0.2'
s.version = '4.0.0'
s.ios.deployment_target = '14.0'
s.osx.deployment_target = '12.0'
s.tvos.deployment_target = '15.0'
Expand Down
29 changes: 29 additions & 0 deletions Sources/Internal/Configurables/Global/GlobalConfig+Center.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
//
// GlobalConfig+Center.swift of MijickPopups
//
// Created by Tomasz Kurylik. Sending ❤️ from Kraków!
// - Mail: [email protected]
// - GitHub: https://github.com/FulcrumOne
// - Medium: https://medium.com/@mijick
//
// Copyright ©2024 Mijick. All rights reserved.


import SwiftUI

public final class GlobalConfigCenter: GlobalConfig { required public init() {}
// MARK: Active Variables
public var popupPadding: EdgeInsets = .init(top: 0, leading: 16, bottom: 0, trailing: 16)
public var cornerRadius: CGFloat = 24
public var backgroundColor: Color = .white
public var overlayColor: Color = .black.opacity(0.5)
public var isTapOutsideToDismissEnabled: Bool = false

// MARK: Inactive Variables
public var ignoredSafeAreaEdges: Edge.Set = []
public var heightMode: HeightMode = .auto
public var dragDetents: [DragDetent] = []
public var isDragGestureEnabled: Bool = false
public var dragThreshold: CGFloat = 0
public var isStackingEnabled: Bool = false
}
19 changes: 0 additions & 19 deletions Sources/Internal/Configurables/Global/GlobalConfig+Centre.swift

This file was deleted.

27 changes: 17 additions & 10 deletions Sources/Internal/Configurables/Global/GlobalConfig+Vertical.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,23 @@
// Copyright ©2024 Mijick. All rights reserved.


import Foundation
import SwiftUI

public extension GlobalConfig { class Vertical: GlobalConfig {
var dragThreshold: CGFloat = 1/3
var isStackingEnabled: Bool = true
var isDragGestureEnabled: Bool = true
public final class GlobalConfigVertical: GlobalConfig { required public init() {}
// MARK: Content
public var popupPadding: EdgeInsets = .init()
public var cornerRadius: CGFloat = 40
public var backgroundColor: Color = .white
public var overlayColor: Color = .black.opacity(0.5)
public var isStackingEnabled: Bool = true

// MARK: Gestures
public var isTapOutsideToDismissEnabled: Bool = false
public var isDragGestureEnabled: Bool = true
public var dragThreshold: CGFloat = 1/3

required init() { super.init()
self.popupPadding = .init()
self.cornerRadius = 40
}
}}
// MARK: Non-Customizable
public var ignoredSafeAreaEdges: Edge.Set = []
public var heightMode: HeightMode = .auto
public var dragDetents: [DragDetent] = []
}
9 changes: 3 additions & 6 deletions Sources/Internal/Configurables/Global/GlobalConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@

import SwiftUI

public class GlobalConfig { required init() {}
var popupPadding: EdgeInsets = .init()
var cornerRadius: CGFloat = 28
var backgroundColor: Color = .white
var overlayColor: Color = .black.opacity(0.44)
var isTapOutsideToDismissEnabled: Bool = false
public protocol GlobalConfig: LocalConfig {
var dragThreshold: CGFloat { get set }
var isStackingEnabled: Bool { get set }
}
27 changes: 27 additions & 0 deletions Sources/Internal/Configurables/Local/LocalConfig+Center.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//
// LocalConfig+Center.swift of MijickPopups
//
// Created by Tomasz Kurylik. Sending ❤️ from Kraków!
// - Mail: [email protected]
// - GitHub: https://github.com/FulcrumOne
// - Medium: https://medium.com/@mijick
//
// Copyright ©2024 Mijick. All rights reserved.


import SwiftUI

public class LocalConfigCenter: LocalConfig { required public init() {}
// MARK: Active Variables
public var popupPadding: EdgeInsets = GlobalConfigContainer.center.popupPadding
public var cornerRadius: CGFloat = GlobalConfigContainer.center.cornerRadius
public var backgroundColor: Color = GlobalConfigContainer.center.backgroundColor
public var overlayColor: Color = GlobalConfigContainer.center.overlayColor
public var isTapOutsideToDismissEnabled: Bool = GlobalConfigContainer.center.isTapOutsideToDismissEnabled

// MARK: Inactive Variables
public var ignoredSafeAreaEdges: Edge.Set = GlobalConfigContainer.center.ignoredSafeAreaEdges
public var heightMode: HeightMode = GlobalConfigContainer.center.heightMode
public var dragDetents: [DragDetent] = GlobalConfigContainer.center.dragDetents
public var isDragGestureEnabled: Bool = GlobalConfigContainer.center.isDragGestureEnabled
}
48 changes: 0 additions & 48 deletions Sources/Internal/Configurables/Local/LocalConfig+Centre.swift

This file was deleted.

71 changes: 17 additions & 54 deletions Sources/Internal/Configurables/Local/LocalConfig+Vertical.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,60 +11,23 @@

import SwiftUI

public extension LocalConfig { class Vertical: LocalConfig {
var ignoredSafeAreaEdges: Edge.Set = []
var heightMode: HeightMode = .auto
var dragDetents: [DragDetent] = []
var isDragGestureEnabled: Bool = GlobalConfigContainer.vertical.isDragGestureEnabled


required init() { super.init()
self.popupPadding = GlobalConfigContainer.vertical.popupPadding
self.cornerRadius = GlobalConfigContainer.vertical.cornerRadius
self.backgroundColor = GlobalConfigContainer.vertical.backgroundColor
self.overlayColor = GlobalConfigContainer.vertical.overlayColor
self.isTapOutsideToDismissEnabled = GlobalConfigContainer.vertical.isTapOutsideToDismissEnabled
}
}}

// MARK: Subclasses & Typealiases
/**
Configures the popup.
See the list of available methods in ``LocalConfig`` and ``LocalConfig/Vertical``.

- important: If a certain method is not called here, the popup inherits the configuration from ``GlobalConfigContainer``.
*/
public typealias TopPopupConfig = LocalConfig.Vertical.Top

/**
Configures the popup.
See the list of available methods in ``LocalConfig`` and ``LocalConfig/Vertical``.

- important: If a certain method is not called here, the popup inherits the configuration from ``GlobalConfigContainer``.
*/
public typealias BottomPopupConfig = LocalConfig.Vertical.Bottom
public extension LocalConfig.Vertical {
class Top: LocalConfig.Vertical {}
class Bottom: LocalConfig.Vertical {}
public class LocalConfigVertical: LocalConfig { required public init() {}
// MARK: Content
public var popupPadding: EdgeInsets = GlobalConfigContainer.vertical.popupPadding
public var cornerRadius: CGFloat = GlobalConfigContainer.vertical.cornerRadius
public var ignoredSafeAreaEdges: Edge.Set = GlobalConfigContainer.vertical.ignoredSafeAreaEdges
public var backgroundColor: Color = GlobalConfigContainer.vertical.backgroundColor
public var overlayColor: Color = GlobalConfigContainer.vertical.overlayColor
public var heightMode: HeightMode = GlobalConfigContainer.vertical.heightMode
public var dragDetents: [DragDetent] = GlobalConfigContainer.vertical.dragDetents

// MARK: Gestures
public var isTapOutsideToDismissEnabled: Bool = GlobalConfigContainer.vertical.isTapOutsideToDismissEnabled
public var isDragGestureEnabled: Bool = GlobalConfigContainer.vertical.isDragGestureEnabled
}



// MARK: - TESTS
#if DEBUG



extension LocalConfig.Vertical {
static func t_createNew<C: LocalConfig.Vertical>(popupPadding: EdgeInsets, cornerRadius: CGFloat, ignoredSafeAreaEdges: Edge.Set, heightMode: HeightMode, dragDetents: [DragDetent], isDragGestureEnabled: Bool) -> C {
let config = C()
config.popupPadding = popupPadding
config.cornerRadius = cornerRadius
config.ignoredSafeAreaEdges = ignoredSafeAreaEdges
config.heightMode = heightMode
config.dragDetents = dragDetents
config.isDragGestureEnabled = isDragGestureEnabled
return config
}
// MARK: Subclasses
public extension LocalConfigVertical {
class Top: LocalConfigVertical {}
class Bottom: LocalConfigVertical {}
}
#endif
19 changes: 13 additions & 6 deletions Sources/Internal/Configurables/Local/LocalConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,17 @@

import SwiftUI

public class LocalConfig { required init() {}
var popupPadding: EdgeInsets = .init()
var cornerRadius: CGFloat = 0
var backgroundColor: Color = .clear
var overlayColor: Color = .clear
var isTapOutsideToDismissEnabled: Bool = false
public protocol LocalConfig { init()
// MARK: Content
var popupPadding: EdgeInsets { get set }
var cornerRadius: CGFloat { get set }
var ignoredSafeAreaEdges: Edge.Set { get set }
var backgroundColor: Color { get set }
var overlayColor: Color { get set }
var heightMode: HeightMode { get set }
var dragDetents: [DragDetent] { get set }

// MARK: Gestures
var isTapOutsideToDismissEnabled: Bool { get set }
var isDragGestureEnabled: Bool { get set }
}
6 changes: 3 additions & 3 deletions Sources/Internal/Containers/GlobalConfigContainer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// Copyright ©2023 Mijick. All rights reserved.


public class GlobalConfigContainer {
nonisolated(unsafe) static var centre: GlobalConfig.Centre = .init()
nonisolated(unsafe) static var vertical: GlobalConfig.Vertical = .init()
public actor GlobalConfigContainer {
nonisolated(unsafe) static var center: GlobalConfigCenter = .init()
nonisolated(unsafe) static var vertical: GlobalConfigVertical = .init()
}
31 changes: 0 additions & 31 deletions Sources/Internal/Containers/PopupManagerContainer.swift

This file was deleted.

Loading