Swift library, for showing awesome messages!
MIT License
//View will be shown on the top
self.showSpace(title: "title", description: "description", spaceOptions: [.spacePosition(position: .top)
])
//View will be shown at the bottom
self.showSpace(title: "title", description: "description", spaceOptions: [.spacePosition(position: .bot)
])
self.showSpace(title: "title", description: "description", spaceOptions: [.spaceStyle(style: .success)
])
//SpaceView will not hide
self.showSpace(title: "title", description: "description", spaceOptions: [.spaceTimer(timer: 3.0)
])
//View will hide after 3 second
self.showSpace(title: "title", description: "description", spaceOptions: [ .shouldAutoHide(should: false)
])
//Image which will be shown on the right side of spaceView
self.showSpace(title: "title", description: "description", spaceOptions: [.image(img: UIImage()),
])
//Set the your custom handlers. By default tap handler will hide SpaceView.
//SwipeAction will perform after user did swipe SpaceView
self.showSpace(title: "title", description: "description", spaceOptions: [
.swipeAction {print("SPACE VIEW DID SWIPE")},
.tapAction {print("SPACE VIEW DID TAP")}
])
To run the example project, clone the repo, and run pod install
from the Example directory first.
SpaceView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "SpaceView"
Xopoko, [email protected]
SpaceView is available under the MIT license. See the LICENSE file for more info.