LinkPreview
Preview with Link's meta information.(SwiftUI)
Install / Use
npx skills add NuPlay/LinkPreviewInstalls into whichever agent you are using.
README
|
|
|
|-------------------------------------------------------------------------------------------------------------------- |------------------------------------------------------------------------------------------------------------------- |
| Image | Gif |
Get Started
import SwiftUI
import LinkPreview
struct LinkPreview_Test: View {
@State private var size: CGFloat = 350
var body: some View {
ZStack(alignment: .bottom){
ScrollView{
VStack{
LinkPreview(url: URL(string: "https://github.com/NuPlay/RichText"))
.backgroundColor(.blue)
.primaryFontColor(.white)
.secondaryFontColor(.white.opacity(0.6))
.titleLineLimit(3)
.frame(width: size, alignment: .center)
LinkPreview(url: URL(string: "https://github.com/NuPlay/ExpandableText"))
.titleLineLimit(20)
.frame(width: size, alignment: .center)
.type(.small)
LinkPreview(url: URL(string: "https://github.com/NuPlay/SwiftUI-SlideText"))
}
.padding(.horizontal, 24)
}
Slider(value: $size , in: 100...400, step: 1)
.padding(.horizontal, 24)
}
}
}
Modifier(optional)
Modifier | Default
--- | ---
.backgroundColor(_ backgroundColor: Color) | Color(.systemGray5)
.primaryFontColor(_ primaryFontColor: Color) | .primary
.secondaryFontColor(_ secondaryFontColor: Color) | .gray
.titleLineLimit(_ titleLineLimit: Int) | 3
.type(_ type: LinkPreviewType(customType[.large, .small, .auto])) | .auto
Related Skills
node-connect
385.5kDiagnose OpenClaw Android, iOS, or macOS node pairing, QR/setup code, route, auth, and connection failures.
blender-python-addon
40.5kBlender Python add-on rules for operators, panels, properties, registration, testing, and API-safe scripting
flutter-development-guidelines-cursorrules-prompt-file
40.5kCursor rules for Flutter development with MVVM architecture, Riverpod state management, Material widgets, and Dart style guidelines.
commit-push-pr
140.6kCommit, push, and open a PR
