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
- Host: GitHub
- URL: https://github.com/androfone/pixel
- Owner: androfone
- License: mit
- Created: 2024-10-27T13:01:50.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-27T14:08:04.000Z (about 1 year ago)
- Last Synced: 2025-04-05T12:09:38.832Z (9 months ago)
- Topics: programming, style, swift, swiftui, swiftui-example
- Language: Swift
- Homepage: https://github.com/androfone/Pixel
- Size: 2.1 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# Pixel
[](https://swiftpackageindex.com/CypherPoet/MyLibraryName)
[](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