Cannot import Everlive SDK in Swift Application

5 posts, 1 answers
  1. smeshko
    smeshko avatar
    8 posts
    Member since:
    May 2014

    Posted 28 Oct 2014 Link to this post

    Hi,

    I'm using the backend services in an iOS Swift app,
    but when I try to import the SDK, Xcode says it can't find the library. I
    added the EverliveSDK.framework to the project, created the Bridging
    file and imported the necessary header

    #import <EverliveSDK/EverliveSDK.h>.

    Am I doing something wrong, or is there a problem with the SDK and Swift/iOS8 ?


  2. Answer
    Anton Dobrev
    Admin
    Anton Dobrev avatar
    539 posts

    Posted 28 Oct 2014 Link to this post

    Hi Ivaylo,

    Based on the information you provided I am guessing that you need also to register the Bridging header  under Build Settings > Swift Compiler > Code Generation with the relative path to the header.

    In case this does not solve the issue could you please provide a sample that reproduces the issue and we will take a look into it?

    For your convenience we created a simple project that uses the iOS SDK with Swift. Note that in order to test it you need to connect the app to a backend project of type Friends app by entering the API key for this project in the ViewController.swift file:
    let myApiKey:NSString = "YOUR_API_KEY"

    Let me know if you have questions.

    Regards,
    Anton Dobrev
    Telerik
     
    Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
     
  3. smeshko
    smeshko avatar
    8 posts
    Member since:
    May 2014

    Posted 28 Oct 2014 Link to this post

    Hi Anton,

    thanks for the swift and detailed reply ! The header was already registered with the correct path, still the problem persists. I believe that Xcode cannot find the .framework file itself, even though I have added its location to the Build Settings > Search Paths > Framework Search Paths manually. Since I am not that far into coding the project, I will use the sample you created as a basis and just continue from there.
  4. megharaj
    megharaj avatar
    4 posts
    Member since:
    Feb 2015

    Posted 17 Apr 2015 Link to this post

    Hi Telerik Team,

     

    Displaypercentage in Pie chart for swift is not showing any effect on the pie chart. 

    could you please assist me with the same.?

     Hoping for your response

    Thanks,

    Megharaj

  5. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 17 Apr 2015 Link to this post

    Hi megharaj,

    This question seems to be related with our iOS controls suite. You will get faster response if you post your questions directly in the appropriate product forum.

    Directly to the issue, you should set the textHidden property of the pointLabelStyle in order to show point labels. Consider the following code:
    series.labelDisplayMode = TKChartPieSeriesLabelDisplayMode.Inside
    series.style.pointLabelStyle.textHidden = false
    series.displayPercentage = true

    I hope this helps. 

    Regards,
    Jack
    Telerik
     
    Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
     
Back to Top