All Projects → square → Blueprint

square / Blueprint

Licence: apache-2.0
Declarative UI construction for iOS, written in Swift

Programming Languages

swift
15916 projects
declarative
70 projects

Projects that are alternatives of or similar to Blueprint

Markupkit
Declarative UI for iOS and tvOS
Stars: ✭ 508 (+1.6%)
Mutual labels:  uikit, declarative-ui
Reactivelists
React-like API for UITableView & UICollectionView
Stars: ✭ 250 (-50%)
Mutual labels:  uikit, declarative-ui
Katana Ui Swift
UIKit port of React, built on top of Katana.
Stars: ✭ 53 (-89.4%)
Mutual labels:  uikit, declarative-ui
UIComponent
Write UI in crazy speed, with great perf & no limitations.
Stars: ✭ 333 (-33.4%)
Mutual labels:  uikit, declarative-ui
Komponents Deprecated
📦 React-inspired UIKit Components - ⚠️ Deprecated
Stars: ✭ 202 (-59.6%)
Mutual labels:  uikit, declarative-ui
Swiftui Cheat Sheet
SwiftUI 2.0 Cheat Sheet
Stars: ✭ 3,417 (+583.4%)
Mutual labels:  uikit, declarative-ui
Keyboardguide
A modern, real iOS keyboard system notifications handler framework that Just Works.
Stars: ✭ 424 (-15.2%)
Mutual labels:  uikit
Neumorphism Ui Bootstrap
Neumorphism inspired UI Kit: web components, sections and pages in neumorphic style built with Bootstrap CSS Framework
Stars: ✭ 463 (-7.4%)
Mutual labels:  uikit
Owl
A declarative type-safe framework for building fast and flexible lists with UITableViews & UICollectionViews
Stars: ✭ 423 (-15.4%)
Mutual labels:  uikit
Cards
Awesome iOS 11 appstore cards in swift 5.
Stars: ✭ 4,017 (+703.4%)
Mutual labels:  uikit
Flutter Ui Kits
Free Flutter UI Kits developed by Olayemi Garuba
Stars: ✭ 484 (-3.2%)
Mutual labels:  uikit
Jtsage Datebox
A multi-mode date and time picker for Bootstrap (3&4), jQueryMobile, Foundation, Bulma, FomanticUI, and UIKit (or others)
Stars: ✭ 481 (-3.8%)
Mutual labels:  uikit
Uikit Ecommerce Template
E-commerce template built with UIKIt
Stars: ✭ 453 (-9.4%)
Mutual labels:  uikit
Uiwindowtransitions
🏃‍♂️ Animated transitions for UIWindow's rootViewController property
Stars: ✭ 429 (-14.2%)
Mutual labels:  uikit
Swiftai
SwiftAI, write Swift code smart. SwiftAI can generate Model class from JSON now. Codable and HandyJSON is supported. More features will be add.
Stars: ✭ 470 (-6%)
Mutual labels:  uikit
Uikit Cross Platform
Cross-platform Swift implementation of UIKit, mostly for Android
Stars: ✭ 421 (-15.8%)
Mutual labels:  uikit
Vkui
VKUI – это набор React-компонентов, с помощью которых можно создавать интерфейсы, внешне неотличимые от наших iOS и Android приложений.
Stars: ✭ 485 (-3%)
Mutual labels:  uikit
Tweetextfield
Lightweight set of text fields with nice animation and functionality. 🚀 Inspired by https://uimovement.com/ui/2524/input-field-help/
Stars: ✭ 421 (-15.8%)
Mutual labels:  uikit
Halfmodalpresentationcontroller
Modal presentation that takes up half the screen. Swipe down to dismiss.
Stars: ✭ 455 (-9%)
Mutual labels:  uikit
Swiftybutton
Simple and customizable button in Swift
Stars: ✭ 471 (-5.8%)
Mutual labels:  uikit

Build Status

Blueprint

Declarative UI construction for iOS, written in Swift

Blueprint greatly simplifies the task of building and updating views as application state changes.

We still consider Blueprint experimental (and subject to major breaking API changes), but it has been used within Square's production iOS apps.

let rootElement = Label(text: "Hello from Blueprint!")
let view = BlueprintView(element: rootElement)

Generated documentation is available at square.github.io/Blueprint

Getting Started

Swift Package Manager

SwiftPM compatible

If you are developing your own package, be sure that Blueprint is included in dependencies in Package.swift:

dependencies: [
    .package(url: "[email protected]:square/Blueprint.git", from: "0.3.0")
]

In Xcode 11+, add Blueprint directly as a dependency to your project with File > Swift Packages > Add Package Dependency.... Provide the git URL when prompted: [email protected]:square/Blueprint.git.

Cocoapods

CocoaPods compatible

If you use CocoaPods to manage your dependencies, simply add BlueprintUI and BlueprintUICommonControls to your Podfile:

pod 'BlueprintUI'
pod 'BlueprintUICommonControls'

What does this library do?

Blueprint provides an architecture that allows you to:

  • Declaratively define a UI hierarchy as pure values (Swift structs and enums).
  • Display that hierarchy within your application.
  • Update that hierarchy as application state changes (including animated transitions).
When should I use it?

Use Blueprint any time you want to display a view hierarchy, but don't want to manage view lifecycle (hint: managing view lifecycle is a large portion of most conventional UIKit code). There are times when you want to manage view lifecycle (complex animations and transitions are a good example), and for these cases you may want to stick with a conventional approach.

How does it interact with UIKit?

Blueprint is not a replacement for UIKit! From the beginning, Blueprint has been designed as a compliment to all of the powerful tools that come with the platform. You can use Blueprint to manage the display of a single view controller, or of a single view representing a small part of the screen. Likewise, it's straightforward to host standard views and controls within a blueprint hierarchy, always leaving you with an escape hatch.


Documentation

Getting Started

  1. Hello, World

  2. The Element Hierarchy

  3. Building Custom Elements

  4. Layout

Reference

  1. Element

  2. BlueprintView

  3. ViewDescription

  4. Transitions

Tutorials

Tutorial setup instructions

  1. Using Blueprint in a View Controller

  2. Building a receipt layout with Blueprint


Adding Blueprint to an existing project

Two modules are provided:

  • BlueprintUI contains the core architecture and layout types.
  • BlueprintUICommonControls includes elements representing some common UIKit views and controls.

Blueprint is available via CocoaPods. Add it to your Podfile to integrate:

target MyTarget do
    pod 'BlueprintUI'
    pod 'BlueprintUICommonControls'
end

Release instructions


Copyright 2019 Square, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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].