calebkleveter / Uiwebkit
Licence: mit
Create web pages for Vapor in Swift.
Stars: ✭ 40
Programming Languages
swift
15916 projects
Projects that are alternatives of or similar to Uiwebkit
Swiftybeaver
Convenient & secure logging during development & release in Swift 3, 4 & 5
Stars: ✭ 5,392 (+13380%)
Mutual labels: vapor
Vaporuploads
Demonstrating uploads in Vapor 4. Particularly large streaming uploads.
Stars: ✭ 19 (-52.5%)
Mutual labels: vapor
Steampress
A Blogging Engine and Platform written in Swift for use with the Vapor Framework
Stars: ✭ 337 (+742.5%)
Mutual labels: vapor
Tinyfaces
Free stock avatars for everyone 👦🏼👨🏾👩🏻 (Built w/ Swift)
Stars: ✭ 498 (+1145%)
Mutual labels: vapor
Mongokitten
Native MongoDB driver for Swift, written in Swift
Stars: ✭ 605 (+1412.5%)
Mutual labels: vapor
Vaporschool
Learn how to build vapor applications from rookie to champion in a constructive way!
Stars: ✭ 259 (+547.5%)
Mutual labels: vapor
Url Encoded Form
📝 Parse and serialize url-encoded form data with Codable support.
Stars: ✭ 32 (-20%)
Mutual labels: vapor
Sockets
🔌 Non-blocking TCP socket layer, with event-driven server and client.
Stars: ✭ 559 (+1297.5%)
Mutual labels: vapor
Awesome Vapor
A curated list of Vapor-related awesome projects.
Stars: ✭ 783 (+1857.5%)
Mutual labels: vapor
Leaf
🍃 An expressive, performant, and extensible templating language built for Swift.
Stars: ✭ 310 (+675%)
Mutual labels: vapor
Swiftserverside Vapor
🦄 Swift server open source projects based on the Swift 4.1 and Vapor 3 frameworks. (Swift 服务端开源项目)
Stars: ✭ 588 (+1370%)
Mutual labels: vapor
Auth Template
A starting point for Vapor applications using the auth provider.
Stars: ✭ 39 (-2.5%)
Mutual labels: vapor
Wtfautolayout
The source code for Why The Failure, Auto Layout?
Stars: ✭ 958 (+2295%)
Mutual labels: vapor
Mysql Nio
🐬 Non-blocking, event-driven Swift client for MySQL.
Stars: ✭ 24 (-40%)
Mutual labels: vapor
UIWebKit
Create UI's for Vapor without HTML.
Example:
Create a class to control the creation of a web page:
import Foundation
import UIWebKit
import Vapor
final class MainView: UIWebPage {
override func configure() {
addSectionText()
addHead()
}
func addSectionText() {
let content = UIElement(element: Element.p)
content.add("Text")
content.attributes["style"] = "font-family: Roboto, sans-serif;"
for _ in 0...10 {
section.add(content)
}
}
func addHead() {
let title = UIElement(element: .title)
title.add("UIWebKit Example")
let link = UIElement(element: .link)
link.attributes["rel"] = "stylesheet"
link.attributes["href"] = "https://fonts.googleapis.com/css?family=Roboto"
head.add(title)
head.add(link)
}
}
Use the class to create the page:
drop.get("about") { req in
return MainView()
}
Documentation:
You can get the API documentation here.
Contributing:
Read the contribution guidlines here.
License:
All code is under the MIT license agreement.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].