CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✗ |
| LangLanguage | SwiftSwift |
| License | MIT |
| ReleasedLast Release | Oct 2015 |
| SPMSupports SPM | ✗ |
Maintained by adad184.
A drop in solution to set a placeholder or show UIView’s size, A Swift version of MMPlaceHolder
The preferred way of installation is via CocoaPods. Just add
pod 'XXPlaceHolder'and run pod install. It will install the most recent version of MMPlaceHolder.
If you would like to use the latest code of MMPlaceHolder use:
pod 'XXPlaceHolder', :headsimply, you only need one line code.
yourView.showPlaceHolder()or you can customize youself.
func showPlaceHolder()
func showPlaceHolderWith(lineColor: UIColor)
func showPlaceHolderWith(lineColor: UIColor, backColor: UIColor)
func showPlaceHolderWith(lineColor: UIColor, backColor: UIColor, arrowSize: CGFloat)
func showPlaceHolderWith(lineColor: UIColor, backColor: UIColor, arrowSize: CGFloat, lineWidth: CGFloat)
func showPlaceHolderWith(lineColor: UIColor, backColor: UIColor, arrowSize: CGFloat, lineWidth: CGFloat, frameWidth: CGFloat, frameColor: UIColor)
func showPlaceHolderWithAllSubviews()
func showPlaceHolderWithAllSubviewsWith(maxPath: UInt)
func hidePlaceHolder()
func hidePlaceHolderWithAllSubviews()
func removePlaceHolder()
func removePlaceHolderWithAllSubviews()
func getPlaceHolder() -> XXPlaceHolder?and you can use the global configuration
struct XXPlaceHolderConfig {
var backColor: UIColor
var arrowSize: CGFloat
var lineColor: UIColor
var lineWidth: CGFloat
var frameColor: UIColor
var frameWidth: CGFloat
var showArrow: Bool
var showText: Bool
var visible: Bool
var autoDisplay: Bool
var autoDisplaySystemView: Bool
var visibleMemberOfClasses: [AnyClass] = [AnyClass]()
var visibleKindOfClasses: [AnyClass] = [AnyClass]()
}1.1 Fix Access Control under using framework
1.0 Migrate code from Objective-C into Swift, fully compatible with MMPlaceHolder