Git Product home page Git Product logo

swift-rectangle-tools's Issues

`.stretch` scaling method does not obey `.down` direction

Currently, all scaling methods except .stretch have different behavior for .down vs .upOrDown scaling directions. .stretch always behaves as if its direction is .upOrDown; it should be changed so that when its direction is .down, neither size dimension increases.

iOS Support

It should be easy to add iOS support to this library

Compiler error for SwiftUI previews

/Path/To/Swift-Rectangle-Tools/Sources/RectangleTools/Default Conformances/EdgeInsets + FourSided.swift:97:19: error: no type named 'EdgeInsets' in module 'SwiftUI'
extension SwiftUI.EdgeInsets: FourSidedAbsolute {
                  ^
/Path/To/Swift-Rectangle-Tools/Sources/RectangleTools/Default Conformances/EdgeInsets + FourSided.swift:124:26: error: no type named 'EdgeInsets' in module 'SwiftUI'
public extension SwiftUI.EdgeInsets {
                         ^

Allow two sizes/points/rects to be convertible to eachother

I should be able to convert a UIntPoint to a CGPoint, or a CGSize to a DecimalSize, or an IntRect to a CGRect. Initializers should be provided which behave like those in the Swift standard library, where the common ones approximāte if the value can't be perfectly represented, and there are others provided which will fail if the other value would be approximately converted.

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.