-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: - Improved library performance due to better task distribution between threads (#153) fix: - Fixed an issue with calling the library from non-main threads (#147) - Fixed an issue that made it impossible to interact with the app when the overlay was set to clear (#150) - Fixed a problem with the stacked popups background color - Improved vertical popup animations refactor: - Renamed and changed some public API properties (see 3.x.x -> 4.0.0 Migration Guide for more information) - Refactored several smaller files
- Loading branch information
1 parent
c94c9a1
commit 9197026
Showing
54 changed files
with
2,410 additions
and
2,310 deletions.
There are no files selected for viewing
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
29 changes: 29 additions & 0 deletions
29
Sources/Internal/Configurables/Global/GlobalConfig+Center.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,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
19
Sources/Internal/Configurables/Global/GlobalConfig+Centre.swift
This file was deleted.
Oops, something went wrong.
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
27 changes: 27 additions & 0 deletions
27
Sources/Internal/Configurables/Local/LocalConfig+Center.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,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
48
Sources/Internal/Configurables/Local/LocalConfig+Centre.swift
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.