Skip to content

Commit

Permalink
Merge pull request #215 from vytick/master
Browse files Browse the repository at this point in the history
added possibility to add custom UIView
  • Loading branch information
PGLongo authored Jun 24, 2018
2 parents 3f5171a + 61fe351 commit 91b870a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions PKHUD/HUD.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public enum HUDContentType {

case label(String?)
case systemActivity
case customView(view: UIView)
}

public final class HUD {
Expand Down Expand Up @@ -99,6 +100,8 @@ public final class HUD {
return PKHUDTextView(text: text)
case .systemActivity:
return PKHUDSystemActivityIndicatorView()
case let .customView(view):
return view
}
}
}

0 comments on commit 91b870a

Please sign in to comment.