GithubHelp home page GithubHelp logo

Custom Design about swiftpasscodelock HOT 7 OPEN

velikanov avatar velikanov commented on July 3, 2024
Custom Design

from swiftpasscodelock.

Comments (7)

younanjo avatar younanjo commented on July 3, 2024 3

To get custom design working ensure that:

All Buttons and Placeholders are given the Module of PasscodeLock in addition to ensuring the File Owner of your custom PasscodeLockView.xib is PasscodeLockView and module being PasscodeLock.

from swiftpasscodelock.

ziogaschr avatar ziogaschr commented on July 3, 2024

This is not hard, and once you have it working everything is easy. I don't have the time now for making an example but if you are able to share one with me, I will help you to make it happen.

from swiftpasscodelock.

kiokumicu avatar kiokumicu commented on July 3, 2024

Now I have another error with custom PasscodeLockView.xib when tap on on any number
fatal error: NSArray element failed to match the Swift Array Element type
Install from cocoapods and add PasscodeSignButton.swift, PasscodeSignPlaceholderView.swift files to project

from swiftpasscodelock.

younanjo avatar younanjo commented on July 3, 2024

i tried this too @ziogaschr . it's not clear how custom design should work. copying the xib file and then you're on your own with all kinds of errors as @kiokumicu mentioned

  1. copy the xib file named PasscodeLockView.xib
  2. change the owner of xib file to PasscodeLockViewController
  3. connect view outlet to ?
    n) ...?

any idea on what the steps should be?

from swiftpasscodelock.

kiokumicu avatar kiokumicu commented on July 3, 2024

Yeah, @younanjo was right, I set for all buttons module PasscodeLock and it's work )
Thx!

from swiftpasscodelock.

antonigiske avatar antonigiske commented on July 3, 2024

I love you, @younanjo. The README should be updated with this information. I've spent hours on this.

from swiftpasscodelock.

ziogaschr avatar ziogaschr commented on July 3, 2024

I have added a custom .xib file in the demo app at PR #27. Please let me know if you think this is enough in order to close this issue

from swiftpasscodelock.

Related Issues (20)

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.