Welcome to the documentation for SPButton
About SPButton
SPButton is a customizable button component for iOS applications. It is designed to be easily integrated into your app and provides various features to enhance user experience.
Installation
To install SPButton in your iOS project, you can use Cocoapods. Simply add the following line to your Podfile:
pod 'SPPurchaseButton'
Then run the command:
pod install
Usage
After installing the library, you can use SPButton in your project by following these steps:
Importing SPButton
In the file where you want to use SPButton, import the library:
import SPPurchaseButton
Creating SPButton
To create an instance of SPButton, use the following code:
let spButton = SPButton()
Customizing SPButton
SPButton provides various customization options. Here are some examples:
To change the background color of the button, use:
spButton.backgroundColor = UIColor.red
To set the button title, use:
spButton.setTitle("Buy Now", for: .normal)
Refer to the GitHub repository for more customization options.
Contributing
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please create an issue in the GitHub repository.
License
SPButton is available under the MIT license. See the LICENSE file for more information.