Swiftpack.co - Package - tichise/MaterialDesignColor

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.

tichise/MaterialDesignColor

Color code library

MaterialDesignColor CocoaPods Version Platform License

image

Color library for Swift. Currently supports GoogleMaterialDesignColor

MaterialDesignColorはGoogleがマテリアルデザインで推奨しているカラーコードを簡単に呼び出せるiOSライブラリです。 cocoapodsからダウンロードして使えます。使い方はこちらに記載してます。

Examples / SwiftUI

import SwiftUI
import MaterialDesignColor

@available(iOS 13.0.0, *)
struct SwiftUIView: View {
    var body: some View {
        Text("hellow world").background(MaterialDesignColor.red400.suColor)
    }
}

@available(iOS 13.0.0, *)
struct SwiftUIView_Previews: PreviewProvider {
    static var previews: some View {
        SwiftUIView()
    }
}

Examples / UIKit

import MaterialDesignColor

textLabel.textColor = MaterialDesignColor.lightGreen400

Installation (CocoaPods)

pod MaterialDesignColor

Github

link
Stars: 22
Last commit: 3 days ago

Releases

2.3.8 - 2021-02-21T05:41:24