Giter Site home page Giter Site logo

flinedev / handyuikit Goto Github PK

View Code? Open in Web Editor NEW
128.0 4.0 15.0 4.44 MB

Handy UI features that should have been part of UIKit in the first place.

License: MIT License

Swift 97.86% Ruby 2.14%
uikit hlc cgrect cgsize color uiview image handy swift luminance

handyuikit's People

Contributors

fredpi avatar jeehut avatar mrylmz 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  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  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

handyuikit's Issues

Rename UIColor change extensions to changed

To be in-line with Swift naming conventions (as being the case with .sort() and .sorted() for collections), I'd propose to rename the UIColor change() extension to changed(). Adding a func change() as an addition isn't possible due to the design of UIColor.

Bug on superscript

"x^{2}" - works as expected but reversing it "^{2}x" would result in the whole string being superscripted. A work-around is adding a space in front of the string " ^{2}x" and the result is ok but needles to say it is a useless drag removing the space from a NSMutableAttributedString.

Thank you

Duplicated schemes?

Does the framework contain two similar schemes for iOS platform?

Here is a log from Carthage:

*** Building scheme "HandyUIKit iOS" in HandyUIKit.xcworkspace
*** Building scheme "HandyUIKit-iOS" in HandyUIKit.xcworkspace

Environment:

  • Carthage: 0.33.0
  • Swift: 5.0.1

BindEdgesToSuperview crash on negative inset

screen shot 2019-01-13 at 9 01 08 pm

The new unreleased implementation of bindEdgesToSuperview(_ inset: UIEdgeInset) crashes on negative insets.
So for the actual value of the inset should be put in parentheses in the constraint format.

Add a method to clear launch screen cache

I propose to add the following extension to UIApplication, taken from this article:

public extension UIApplication {
    func clearLaunchScreenCache() {
        do {
            try FileManager.default.removeItem(atPath: NSHomeDirectory()+"/Library/SplashBoard")
        } catch {
            print("Failed to delete launch screen cache: \(error)")
        }
    }
}

While this extension is only appropriate in debug environments, I think it's still a good fit for HandyUIKit...

Changing hue in hsba on a white color doesn't work

Regarding the following code:

let newHueValue = UIColor.white.change(.hue, to: 0.25).hsba.hue

The expected new hue value would be 0.25, but it's actually 0.0. It seems not to work with UIColor.white. This should be added to the tests and covered. Also other possible not-working options should checked like UIColor.black.

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.