Giter Site home page Giter Site logo

azul-digital's People

Contributors

chrisfsampaio avatar

Watchers

 avatar

azul-digital's Issues

Fluxo de Login

@chrisfsampaio

Estou tentando fazer o fluxo de login, exemplo:

  • Se usuário não está logado, vai pro PresentViewController (tela principal)
  • Se usuário já está logado, vai pro MapViewController (que possui botão logout)

Problemas:

  • Quando eu vou direto pro MapViewController, não tenho a hierarquia PresentVC -> LoginVC -> MapVC até ai tudo bem.
  • Quando eu inicio na PresentViewController, vou pra LoginVC e MapVC; se eu fizer Logout, instanciando PresentViewController e novamente ir Login->Map, no debugger aparece 2 instancias da PresentVC/LoginVC porque na hora do logout elas ficaram na memória.
  • Testei com código abaixo e outras formas no AppDelegate mas sem sucesso, sempre fica umas instancias na memória.

let storyboard = UIStoryboard(name: "Main", bundle: nil) let initialViewController = storyboard.instantiateViewController(withIdentifier: "UINavigationControllerMain") present(initialViewController, animated: true, completion: nil) // UIApplication.shared().delegate?.window??.rootViewController = initialViewController

Poderia ajudar? Vou continuando outras coisas.

Thanks 👍

Fix Profile/ProfileEdit ViewController

@chrisfsampaio need ideas ):

Now:

  • User chooses an image from Library
  • Upload to FirebaseStorage and get URL

1.0 User cancel on ProfileViewController, delete image from FirebaseStorage or User Account could fail and we could not cancel again. Only can go forward or open the app again
1.1 If user cancel on ProfileEditController, Profile's image was already changed in FirebaseStorage which is wrong

Need to fix:

  • User chooses an image from Library
  • Keep image
    1.0 User cancel on ProfileViewController, go to CreateAccountViewController without uploading image
    2.0 If user did not set an image when creating an account, ProfileEditController did not load because there's no image to download
    2.1 If user cancel on ProfileEditController, go to SettingsTableViewController without saving any data to Firebase
  • Try to save first/lastname, if succeed then try to upload and save image's profile

Money format

@chrisfsampaio, na tela do cartão eu coloquei um UITextField pro usuário inserir um valor como se fosse o valor que ele possui no cartão.

Você acha melhor utilizar a lib Money ou deixa da forma que fiz abaixo?

protocol ValidateFunds {
    fun validatefunds(funds: String) -> Bool
}

extension ValidateFunds {
    fun validatefunds(funds: String) -> Bool {
        let regex = try! NSRegularExpression(pattern: "^\\d{1,}(\\,{1})\\d{2}$", options: [.anchorsMatchLines])

        let regexResult = regex.firstMatch(in: funds, options:[], range: NSRange(location: 0, length: funds.characters.count)) != nil

        if !regexResult {
            return false
        }

        return true
    }
}

extension String {
    fun roundTwoDecimal(number: String) -> Float? {
        let format = NumberFormatter()
        format.numberStyle = .decimal
        format.maximumFractionDigits = 2
        return format.number(from: number)?.floatValue
    }
}

Fix Localization

  • Need to fix Localizable.strings (localization in general) for English and Brazilian Portuguese.

I've implemented but is very confusing and I think is kind wrong.

UX - MapViewController

  • Replace UINavigationController with TabbarViewController with two Items
  • Add central button into bottombar
  • Add animation to button in bottombar to hide/show Tabbar

UIImagePickerController warning

  • When selected an image from UIImagePicker, receives:
2016-08-04 14:01:42.678796 Azul Digital[3464:826206] [Generic] Creating an image format with an unknown type is an error
2016-08-04 14:01:45.595325 Azul Digital[3464:826509] [] <<<< FigPhotoJPEGDecodeSession >>>> **** Warning: Converting CGImage's IOSurface backing from 420f to BGRA/L555 on demand. This is slow. If you intend to draw using CG or otherwise access the bytes directly use a BGRA surface instead.

StackView

StackView nas Views:

  • MKMapView
  • UIView (bottom)

Como fazer a UIView (bottom) altura máxima 44 e diminuir proporcionalmente de acordo com o Device?

Ou

Ter altura proporcional de acordo com o Device sem que distorça os button ?

Tentativa:

  • Fiz Stack da Map+UIView (bottom) com Fill Proporcional mas fica metade da tela cada View, tentei autolayout pra atribuir Height proporcional a View principal (alterando multiplier) + Aspect Ratio mas sem sucesso

ScreenShot

@chrisfsampaio

Xcode Simulator

Criação de conta de usuário utilizando Simulador gera erro de acesso ao Keychain no Switch do protocolo creatable.

  • Utilizar iPhone para simulação confiável.

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.