Git Product home page Git Product logo

samples's Introduction

Welcome!

Here is a list of project and code sample that is used to support my website https://benoitpasquier.com.

Architecture & Design Pattern ๐Ÿงฐ

Swift MVVM Template project has been moved here ๐Ÿ‘‰ Template Project

Testing ๐Ÿ› 

iOS Feature ๐Ÿ“ฑ

macOS Feature ๐Ÿ’ป

Wanted to share an improvements? Noticing a typo? I'm open to external contributions :)

Feel free to follow me on Twitter to get latest update posts and projects.

Ben

samples's People

Contributors

dullbananas avatar popei69 avatar tcobbs-bentley avatar ttorbik avatar zappycode 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  avatar  avatar  avatar

samples's Issues

NumberSample

I've been looking for a solution to currency input and your's comes very close to doing what I need. I see these problems;

  1. No way to load an initial value. Line 58 has the value = 10 but the field still displays as $0.00 and sending has 10. I've looked but don't code using UIKet so don't see why this happens
  2. There is a rounding problem caused by
    private var doubleValue: Double {
    return (decimal as NSDecimalNumber).doubleValue
    }
    Enter, for example 4.44 and you get 4.43. I would recommend that you change using doubleValue (line 171) to just
    value = NSDecimalNumber(decimal: decimal * 100).intValue
  3. Move CurrencyField code to a separate file so it can easily be used.

Looking forward to a fix.

George

Request Simple FAQ Demo

I am new in SwiftUI, I want to creat FAQ view means( question answer view). In this view populate number of question and answer. When I click on anyone question, only the answer of that question is visible and not the other question. And the answer of all the questions should be hidden.

NumberSample - App crashes when using NavigationLink

Going back and forth with the NavigationLink makes the app crashes.

How to replicate:

@main
struct NumberSampleApp: App {
    var body: some Scene {
        WindowGroup {
            
            NavigationView {
                NavigationLink("Content", destination: ContentView())
            }
        }
    }
}

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.