A collection of extensions of Cocoa, for quick developing
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Extension.xcodeproj
Extension
.gitignore
.travis.yml
LICENSE
Package.swift
README.MD

README.MD

Release Status

CocoaPods Carthage SwiftPackage

Language Platform

Donate

Beief

A collection Extension for quick developing

Install

Cocoa Pod

add pod file below and command pod update

platform :ios, ‘8.0’
use_frameworks!
target 'AppStore' do
	pod	'Extension'
end

Carthage

add code below to your Cartfile and command carthage update

github "DingSoung/Extension"

Swift Package Manager

follow the SPMExample, UIKit excluded

import PackageDescription
let package = Package(
    name: "SPMExample",
    dependencies: [
        .Package(url: "https://github.com/DingSoung/Extension.git", Version(0,6,0)),
    ]
)

Localization

  • no need to restart app
  • support custom bundle
  • support NSLocalizedString
  • support xibs
  • support to reset
  • use extension, no need to subclass
  • light weight (only on file), easy to use(ref usage)
NSLocale.languageCode = @"en";
[NSBundle mainBundle].localizationCode = @"en";
custonBundle.localizationCode = @"en";
anotherCustonBundle.localizationCode = @"en";
/// reload your UI, ex: reload root viewcontroller