-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f7cf6ec
commit 45f080c
Showing
45 changed files
with
7,660 additions
and
384 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
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
Binary file modified
BIN
+59.2 KB
(100%)
Framework/PushwooshFramework.framework/Versions/A/PushwooshFramework
Binary file not shown.
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
152 changes: 152 additions & 0 deletions
152
...k.xcframework/ios-arm64/PushwooshFramework.framework/Headers/PWModalWindowConfiguration.h
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,152 @@ | ||
// | ||
// PWRichMediaConfiguration.h | ||
// Pushwoosh | ||
// | ||
// Created by André Kis on 01.10.24. | ||
// Copyright © 2024 Pushwoosh. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "PWRichMediaManager.h" | ||
|
||
/** | ||
Enum defining the possible positions for displaying the modal window on the screen. | ||
- `PWModalWindowPositionTop`: The modal window appears at the top of the screen. | ||
- `PWModalWindowPositionCenter`: The modal window appears at the center of the screen. | ||
- `PWModalWindowPositionBottom`: The modal window appears at the bottom of the screen. | ||
- `PWModalWindowPositionDefault`: The default position is the center of the screen. | ||
*/ | ||
typedef NS_ENUM(NSInteger, ModalWindowPosition) { | ||
PWModalWindowPositionTop, // Toast appears at the top of the screen | ||
PWModalWindowPositionCenter, // Toast appears at the center of the screen | ||
PWModalWindowPositionBottom, // Toast appears at the bottom of the screen | ||
|
||
/** | ||
* Default position is the center of the screen. | ||
*/ | ||
PWModalWindowPositionDefault | ||
}; | ||
|
||
/** | ||
Enum defining the types of haptic feedback that can be triggered when interacting with the modal window. | ||
- `PWHapticFeedbackLight`: Provides a light vibration feedback. | ||
- `PWHapticFeedbackMedium`: Provides a medium-intensity vibration feedback. | ||
- `PWHapticFeedbackHard`: Provides a strong vibration feedback. | ||
- `PWHapticFeedbackNone`: Vibration feedback is turned off by default. | ||
*/ | ||
typedef NS_ENUM(NSInteger, HapticFeedbackType) { | ||
PWHapticFeedbackLight, // Light vibration feedback | ||
PWHapticFeedbackMedium, // Medium vibration feedback | ||
PWHapticFeedbackHard, // Strong vibration feedback | ||
|
||
/** | ||
* Vibration is off by default. | ||
*/ | ||
PWHapticFeedbackNone | ||
}; | ||
|
||
/** | ||
Enum defining the animation styles for dismissing the modal window. | ||
- `PWAnimationDismissDown`: The modal window slides down when dismissed. | ||
- `PWAnimationDismissUp`: The modal window slides up when dismissed. | ||
- `PWAnimationDismissLeft`: The modal window slides to the left when dismissed. | ||
- `PWAnimationDismissRight`: The modal window slides to the right when dismissed. | ||
- `PWAnimationCurveEaseInOut`: The modal window uses an ease-in-out curve animation when dismissed. | ||
- `PWAnimationDismissNone`: No animation is applied when dismissing the modal window. | ||
- `PWAnimationDismissDefault`: The default dismiss animation is `PWAnimationCurveEaseInOut`. | ||
*/ | ||
typedef NS_ENUM(NSInteger, DismissModalWindowAnimation) { | ||
PWAnimationDismissDown, | ||
PWAnimationDismissUp, | ||
PWAnimationDismissLeft, | ||
PWAnimationDismissRight, | ||
PWAnimationCurveEaseInOut, | ||
PWAnimationDismissNone, | ||
|
||
/** | ||
* Default dismiss animation is `PWAnimationCurveEaseInOut` | ||
*/ | ||
PWAnimationDismissDefault | ||
}; | ||
|
||
typedef NS_ENUM(NSInteger, DismissSwipeDirection) { | ||
PWSwipeDismissDown, | ||
PWSwipeDismissUp, | ||
PWSwipeDismissLeft, | ||
PWSwipeDismissRight, | ||
PWSwipeDismissNone | ||
}; | ||
|
||
/** | ||
Enum defining the animation styles for presenting the modal window. | ||
- `PWAnimationPresentFromBottom`: The modal window slides in from the bottom of the screen. | ||
- `PWAnimationPresentFromTop`: The modal window slides in from the top of the screen. | ||
- `PWAnimationPresentFromRight`: The modal window slides in from the right side of the screen. | ||
- `PWAnimationPresentFromLeft`: The modal window slides in from the left side of the screen. | ||
- `PWAnimationPresentNone`: No animation is applied when presenting the modal window. | ||
*/ | ||
typedef NS_ENUM(NSInteger, PresentModalWindowAnimation) { | ||
PWAnimationPresentFromBottom, | ||
PWAnimationPresentFromTop, | ||
PWAnimationPresentFromRight, | ||
PWAnimationPresentFromLeft, | ||
PWAnimationPresentNone | ||
}; | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface PWModalWindowConfiguration : NSObject | ||
|
||
/** | ||
Provides access to the shared instance of the modal window manager. | ||
@return A singleton instance of the modal window manager. | ||
*/ | ||
+ (instancetype)shared; | ||
|
||
/** | ||
Configures the modal window to be displayed at a specified position on the screen and defines the animation styles for presenting and dismissing the window. | ||
@param position The screen position where the modal window will be displayed (e.g., top, bottom). | ||
@param presentAnimation The animation style used when the modal window is presented (e.g., fade, slide). | ||
@param dismissAnimation The animation style used when the modal window is dismissed (e.g., fade, slide). | ||
*/ | ||
- (void)configureModalWindowWith:(ModalWindowPosition)position | ||
presentAnimation:(PresentModalWindowAnimation)presentAnimation | ||
dismissAnimation:(DismissModalWindowAnimation)dismissAnimation; | ||
|
||
/** | ||
Configures swipe gestures for interacting with the modal window. These gestures allow the user to dismiss the window by swiping in specified directions. | ||
@param swipeDirection An array of swipe directions allowed for dismissing the modal window (e.g., up, down, left, right). | ||
*/ | ||
- (void)setDismissSwipeDirections:(NSArray<NSNumber *>*)swipeDirection; | ||
|
||
/** | ||
Sets the type of haptic feedback that will be triggered when the modal window is presented. | ||
@param type The type of haptic feedback to be used (e.g., light, medium, heavy). | ||
*/ | ||
- (void)setPresentHapticFeedbackType:(HapticFeedbackType)type; | ||
|
||
/** | ||
Schedules the automatic closing of the modal window after a specified time interval. | ||
@param interval The time interval, in seconds, after which the modal window will be automatically closed. | ||
*/ | ||
- (void)closeModalWindowAfter:(NSTimeInterval)interval; | ||
|
||
/** | ||
Presents the modal window with the specified rich media content. | ||
@param richMedia The rich media content that will be displayed inside the modal window. | ||
*/ | ||
- (void)presentModalWindow:(PWRichMedia *)richMedia; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
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
Binary file modified
BIN
+23.8 KB
(100%)
.../PushwooshFramework.xcframework/ios-arm64/PushwooshFramework.framework/PushwooshFramework
Binary file not shown.
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.