An open API service indexing awesome lists of open source software.

https://github.com/androfone/pixel

Pixel é um pacote para estilizar seu refreshable em swift
https://github.com/androfone/pixel

programming style swift swiftui swiftui-example

Last synced: 5 months ago
JSON representation

Pixel é um pacote para estilizar seu refreshable em swift

Awesome Lists containing this project

README

          

# Pixel

[![Swift Version Compatibility](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FCypherPoet%2FMyLibraryName%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/CypherPoet/MyLibraryName)

[![Swift Platform Compatibility](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FCypherPoet%2FMyLibraryName%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/CypherPoet/MyLibraryName)







_[ A brief synopsis of this library ]._

## Installation

### Xcode Projects

Select `File` -> `Swift Packages` -> `Add Package Dependency` and enter `https://github.com/androfone/Pixel`.

### Example

```swift
import SwiftUI
import Pixel

struct ContentView: View {
@State private var isRefreshing: Bool = false

var body: some View {
VStack {
Text("Bem-vindo ao PixelKit!")
.font(.largeTitle)
.padding()
.background(Color.white)
.cornerRadius(10)
.shadow(radius: 5)

Button(action: {

isRefreshing.toggle()
PixelKit.stylishRefreshable(isRefreshing: &isRefreshing, color: .blue, size: 30)
}) {
Text("Refresh")
.padding()
.background(Color.blue)
.foregroundColor(.white)
.cornerRadius(10)
.border(Color.gray, width: 2)
}
.padding()
}
.padding()
.stylishRefreshable(isRefreshing: $isRefreshing, color: .blue, size: 30)
}
}
```

## Steps

- [ ] Add in your Swift Editor