Coder Social home page Coder Social logo

farzadshbfn / styled Goto Github PK

View Code? Open in Web Editor NEW
37.0 37.0 1.0 600 KB

Elegant Style(Color,Font,Image,...) management in Swift

License: MIT License

Ruby 1.07% Objective-C 0.47% Swift 98.46%
accessibility assets localization string-interpolation style swift theme

styled's People

Contributors

farzadshbfn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

hrayatnia

styled's Issues

Multi module/target application with the useKeyAsValue as true

I believe there is a bug in this scenario:
If we use multiple bundles and in our main scheme (LocalizedString.DefaultScheme) we set the useKeyAsValue as true, then the resolver will not look inside the other bundles cause the main bundle has a value which is the key value itself.

in line 335 of LocalizedString.swift maybe it's better to change the

$0.string(for: localizedString) ?? String.localized(localizedString, in: bundle, useKeyAsValue: useKeyAsValue, table: table)

to

String.localized(localizedString, in: bundle, useKeyAsValue: useKeyAsValue, table: table) ?? $0.string(for: localizedString)

Code Coverage (from 70% to 95%)

Project currently has code coverage around 70%...

Following parts still needs tests to increase the code coverage above 95%...

  • Font
  • Localizations
  • Changing Configurations

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.