All Projects → PiXeL16 → Iblocalizable

PiXeL16 / Iblocalizable

Licence: mit
Localize your views directly in Interface Builder with IBLocalizable

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Iblocalizable

Nim ios uikit
网易云信 iOS UI 组件,提供聊天界面,文本消息,图片消息,语音消息,视频消息,地理位置消息,自定义消息(阅后即焚)等消息示例。#推荐客户得比特币,首次推荐得0.02BTC,连续推荐得0.03BTC/单,上不封顶。点击参与https://yunxin.163.com/promotion/recommend
Stars: ✭ 1,326 (+186.39%)
Mutual labels:  cocoapods, ui-components
Abexpandableview
Expandable, collapsible, filterable and single/multi selectable table view.
Stars: ✭ 138 (-70.19%)
Mutual labels:  cocoapods, ui-components
Everlayout
Reusable, downloadable, up-datable iOS layouts
Stars: ✭ 103 (-77.75%)
Mutual labels:  cocoapods, interface-builder
Rsformview
A Cocoapods library designed to easily create forms with multiple data entry fields
Stars: ✭ 84 (-81.86%)
Mutual labels:  cocoapods, ui-components
Containercontroller
UI Component. This is a copy swipe-panel from app: Apple Maps, Stocks. Swift version
Stars: ✭ 273 (-41.04%)
Mutual labels:  cocoapods, ui-components
Slidingtabbar
A custom TabBar view with sliding animation written in Swift.
Stars: ✭ 84 (-81.86%)
Mutual labels:  cocoapods, ui-components
Switch
💊 An iOS switch control implemented in Swift with full Interface Builder support
Stars: ✭ 132 (-71.49%)
Mutual labels:  cocoapods, interface-builder
Forceblur
ForceBlur Animation for iOS Messaging Apps
Stars: ✭ 666 (+43.84%)
Mutual labels:  cocoapods, interface-builder
Simplecheckbox
A simple Checkbox
Stars: ✭ 253 (-45.36%)
Mutual labels:  cocoapods, interface-builder
Trilabelview
A triangle shaped corner label view for iOS written in Swift.
Stars: ✭ 158 (-65.87%)
Mutual labels:  cocoapods, ui-components
Hover
🎈 The smartest floating button
Stars: ✭ 81 (-82.51%)
Mutual labels:  cocoapods, ui-components
Tweetextfield
Lightweight set of text fields with nice animation and functionality. 🚀 Inspired by https://uimovement.com/ui/2524/input-field-help/
Stars: ✭ 421 (-9.07%)
Mutual labels:  cocoapods, interface-builder
Wstagsfield
An iOS text field that represents tags, hashtags, tokens in general.
Stars: ✭ 1,013 (+118.79%)
Mutual labels:  cocoapods, ui-components
Uitextfield Navigation
🏄‍♂️ UITextField-Navigation makes it easier to navigate between UITextFields and UITextViews
Stars: ✭ 436 (-5.83%)
Mutual labels:  cocoapods, interface-builder
Koyomi
Simple customizable calendar component in Swift 📆
Stars: ✭ 716 (+54.64%)
Mutual labels:  cocoapods, ui-components
Floatinglabeltextfieldswiftui
Floating Label TextField for SwiftUI. FloatingLabelTextFieldSwiftUI
Stars: ✭ 128 (-72.35%)
Mutual labels:  cocoapods, interface-builder
Yalfield
Custom Field component with validation for creating easier form-like UI from interface builder.
Stars: ✭ 476 (+2.81%)
Mutual labels:  cocoapods, interface-builder
Multiprogressview
📊 An animatable view that depicts multiple progresses over time. Modeled after UIProgressView
Stars: ✭ 614 (+32.61%)
Mutual labels:  cocoapods, ui-components
Bekcurvetabbar
Full Customizable Tabbar with IBInspectables
Stars: ✭ 144 (-68.9%)
Mutual labels:  cocoapods, ui-components
Skyfloatinglabeltextfield
A beautiful and flexible text field control implementation of "Float Label Pattern". Written in Swift.
Stars: ✭ 3,907 (+743.84%)
Mutual labels:  cocoapods, interface-builder

IBLocalizable

Localize your views easily in Interface Builder with IBLocalizable.

codecov.io Language CocoaPods Compatible Awesome GitHub license

With IBLocalizable, you can localize your views in Interface Builder easily. Simply set the new Localizable String property that shows up in Interface builder to the value that you added in your Localizable .string file. Most views can be localized this way without a single line of code.

Installation

Swift package manager

Add .Package(url: "https://github.com/PiXeL16/IBLocalizable.git",majorVersion: 1) to your Package.swift

CocoaPods

Add pod 'IBLocalizable' to your Podfile.

Carthage

Add github "PiXeL16/IBLocalizable" to your Cartfile.

Manual Installation

  • Please note, installation via CocoaPods or Carthage is much simpler and recommended.

Download and drop /IBLocalizable in your project.

Supported Views

  • UILabel
  • UIButton
  • UINavigationItem (Navigation titles)
  • UIBarItem (BarButton, TabBarItem, etc)
  • UITextField
  • UITextView
  • UISearchBar

Supporting custom views

Custom views can be supported easily. Just create an extension and implement the Localizable Protocol.

If your custom view extends from UIView you only need to extend your custom view and implement the localizableProperty.

For example: lets say that I have a custom view that contains several UILabel and a UIImageView. I will like to localize one of the UILabel.

import UIKit
extension MyCustomView {

    public override var localizableProperty: String?{

        get{
            return self.label.text
        }
        set{
            self.label.text = newValue
        }
    }
}

Thats it! 😄.

Usage

After the package its installed simply open your Storyboard or Interface Builder. All of the supported views will show a new Localizable String property.

interfaceBuilder

Since everything is extension based, IBLocalizable should play nice with other libraries or pods that you are using.

Build Performance

Since IBLocalizable only uses IBInspectable and never IBDesignable, your incremental builds will continue to work. (http://www.openradar.me/20690594)

Sample Project

In the Xcode Project you can find a sample project of a simple Login view controller. All of this is automatically localizable in English and Spanish by just using IBLocalizable.

English

english

Spanish

spanish

To do

  • Support more views (TableView Cells, etc)
  • Improve sample project.

Author

Chris Jimenez - http://code.chrisjimenez.net, @chrisjimeneznat

🍺 Donate

If you want to buy me a beer, you can donate to my coin addresses below:

BTC

1BeGBew4CBdLgUSmvoyiU1LrM99GpkXgkj

ETH

0xa59a3793E3Cb5f3B1AdE6887783D225EDf67192d

LTC

Ld6FB3Tqjf6B8iz9Gn9sMr7BnowAjSUXaV

License

IBLocalizable is released under the MIT license. See LICENSE for details.

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