Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b040f4771c | |||
| b938eddb87 | |||
| 01fe85b95c | |||
| f538673b53 | |||
| 898f7e4de4 | |||
| 570f059615 | |||
| ec7a9973c5 |
@@ -1,9 +0,0 @@
|
||||
issuesOpened: >
|
||||
Thank you for raising an issue. We will try and get back to you as soon as possible.
|
||||
|
||||
Please make sure you have given us as much context as possible.
|
||||
|
||||
pullRequestOpened: >
|
||||
Thank you for raising your pull request.
|
||||
|
||||
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
|
||||
@@ -8,3 +8,4 @@ markComment: >
|
||||
recent activity. It will be closed if no further activity occurs. Thank you
|
||||
for your contributions.
|
||||
closeComment: false
|
||||
only: issues
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
name: Greetings
|
||||
|
||||
on: [pull_request, issues]
|
||||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
greeting:
|
||||
@@ -9,6 +9,5 @@ jobs:
|
||||
- uses: actions/first-interaction@v1
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
issue-message: 'Hi '
|
||||
pr-message: 'Hi! Message that will be displayed on users'
|
||||
pr-message: 'Hi 👋! Thank you for raising your pull request. \n Please make sure you have followed our contributing guidelines. We will review it as soon as possible.'
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Pod::Spec.new do |s|
|
||||
s.name = "SkeletonView"
|
||||
s.version = "1.8.4"
|
||||
s.version = "1.8.5"
|
||||
s.summary = "An elegant way to show users that something is happening and also prepare them to which contents he is waiting"
|
||||
s.description = <<-DESC
|
||||
Today almost all apps have async processes, as API requests, long runing processes, etc. And while the processes are working, usually developers place a loading view to show users that something is going on.
|
||||
|
||||
@@ -15,17 +15,21 @@ protocol SkeletonFlowDelegate {
|
||||
|
||||
class SkeletonFlowHandler: SkeletonFlowDelegate {
|
||||
func willBeginShowingSkeletons(rootView: UIView) {
|
||||
NotificationCenter.default.post(name: .willBeginShowingSkeletons, object: rootView, userInfo: nil)
|
||||
rootView.addAppNotificationsObservers()
|
||||
}
|
||||
|
||||
func didShowSkeletons(rootView: UIView) {
|
||||
printSkeletonHierarchy(in: rootView)
|
||||
NotificationCenter.default.post(name: .didShowSkeletons, object: rootView, userInfo: nil)
|
||||
}
|
||||
|
||||
|
||||
func willBeginUpdatingSkeletons(rootView: UIView) {
|
||||
NotificationCenter.default.post(name: .willBeginUpdatingSkeletons, object: rootView, userInfo: nil)
|
||||
}
|
||||
|
||||
func didUpdateSkeletons(rootView: UIView) {
|
||||
NotificationCenter.default.post(name: .didUpdateSkeletons, object: rootView, userInfo: nil)
|
||||
}
|
||||
|
||||
func willBeginLayingSkeletonsIfNeeded(rootView: UIView) {
|
||||
@@ -35,10 +39,21 @@ class SkeletonFlowHandler: SkeletonFlowDelegate {
|
||||
}
|
||||
|
||||
func willBeginHidingSkeletons(rootView: UIView) {
|
||||
NotificationCenter.default.post(name: .willBeginHidingSkeletons, object: rootView, userInfo: nil)
|
||||
rootView.removeAppNoticationsObserver()
|
||||
}
|
||||
|
||||
func didHideSkeletons(rootView: UIView) {
|
||||
rootView.flowDelegate = nil
|
||||
NotificationCenter.default.post(name: .didHideSkeletons, object: rootView, userInfo: nil)
|
||||
}
|
||||
}
|
||||
|
||||
public extension Notification.Name {
|
||||
static let willBeginShowingSkeletons = Notification.Name("willBeginShowingSkeletons")
|
||||
static let didShowSkeletons = Notification.Name("didShowSkeletons")
|
||||
static let willBeginUpdatingSkeletons = Notification.Name("willBeginUpdatingSkeletons")
|
||||
static let didUpdateSkeletons = Notification.Name("didUpdateSkeletons")
|
||||
static let willBeginHidingSkeletons = Notification.Name("willBeginHidingSkeletons")
|
||||
static let didHideSkeletons = Notification.Name("didHideSkeletons")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user