Git Product home page Git Product logo

Comments (4)

GodsEye-07 avatar GodsEye-07 commented on June 16, 2024 4

@gaming-hacker @tkirby the default version of the code that was written for the pod is for iOS 6 Set it to the current version and you will be able to use the same again in the latest version.

Also you may face the same issue since the code is been written in Obj-C and what you are using now is Swift so there may be a problem with the bridging of the files as you imported them.

for this:
Select the APP NAME under the project root in the Project Navigator (press Command-1 if it’s not showing), select File\New\File… from the menu, and then select iOS\Source\Header File. Click Next, name the file APP NAME-Bridging-Header.h and click Create.

Replace the contents of the new file with the following:

#import "FBShimmering.h"
#import "FBShimmeringLayer.h"
#import "FBShimmeringView.h"

Next, select the project root in the Project Navigator, and then select the APP_NAME target.
Choose the Build Settings tab, and find the Swift Compiler – Code Generation\Objective-C Bridging Header item. As a shortcut, you can type bridging in the search field at the top of the settings to find the item quickly.
Double-click the value field to the right of the Objective-C Bridging Header label and enter the location of the bridging header that you just created: APP_NAME/APP_NAME-Bridging-Header.h.

also for further reference and visual understanding you may visit:
https://www.raywenderlich.com/93138/using-facebook-shimmer-swift

this may be helpful

from shimmer.

FBente avatar FBente commented on June 16, 2024 1

Try #import <Shimmer/FBShimmeringView.h> in your NAME-Bridging-Header.h file.

from shimmer.

tkirby avatar tkirby commented on June 16, 2024

+1.
I added the code to my project and nothing happens. No error, no shimmer. The example project doesn't work in latest Xcode:

"Compiling IB documents for earlier than iOS 7 is no longer supported."

from shimmer.

apptekstudios avatar apptekstudios commented on June 16, 2024

@tkirby The example project has target version of iOS set to 6, change it to something more recent and it will work :)

from shimmer.

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.