Skip to content

Commit

Permalink
added possibility to add user custom view
Browse files Browse the repository at this point in the history
  • Loading branch information
vytick committed Dec 18, 2017
1 parent 4da1e09 commit 61fe351
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 61fe351

Please sign in to comment.