Code Monkey home page Code Monkey logo

Comments (8)

quangctkm9207 avatar quangctkm9207 commented on June 19, 2024 1
  1. Please do not set targetHolderRadius more than 0.
  2. And at that time, the showcase will use the background of your tableview item as target holder.
    So, in your storyboard, you should add background color or background image to your tableview item's content. I saw that it seem to be transparent currently.

from material-showcase-ios.

quangctkm9207 avatar quangctkm9207 commented on June 19, 2024

Hi @ajaysharmalike ,
Did you check out the sample for TableView case? It worked on your side?

from material-showcase-ios.

ajaysharmalike avatar ajaysharmalike commented on June 19, 2024

@quangctkm9207 Yes, that's working fine in demo. And adding this library to a tableview requires tableview with section & row value only. But this doesn't seems to be working in either case.

from material-showcase-ios.

quangctkm9207 avatar quangctkm9207 commented on June 19, 2024

Can you show me a screenshot?
The code behind TableView item showcase can be found here.

@objc public func setTargetView(tableView: UITableView, section: Int, row: Int) {

It suggests that targetHolderRadius should be 0 and inside TableView item, you should have a background item which is in rectangle shape.

from material-showcase-ios.

ajaysharmalike avatar ajaysharmalike commented on June 19, 2024

Can you show me a screenshot?
The code behind TableView item showcase can be found here.
material-showcase-ios/MaterialShowcase/MaterialShowcase.swift
Line 143 in c1ea1ae
@objc public func setTargetView(tableView: UITableView, section: Int, row: Int) {

It suggests that targetHolderRadius should be 0 and inside TableView item, you should have a background item which is in rectangle shape.

Here are the reference screenshots :

  1. Default implementation on UITableView
    img_1754

  2. Adding targetHolderRadius value
    img_85ca030cfa97-1

In either of cases, Showcase on cell is not getting rectangle.

from material-showcase-ios.

ajaysharmalike avatar ajaysharmalike commented on June 19, 2024

Yupp ... It worked while setting the background color for the cell ContentView. And shouldSetTintColor to false incase cell contains image.

from material-showcase-ios.

ajaysharmalike avatar ajaysharmalike commented on June 19, 2024

Thanks for your inputs.

from material-showcase-ios.

quangctkm9207 avatar quangctkm9207 commented on June 19, 2024

@ajaysharmalike , Did you solve the issue by yourself?

from material-showcase-ios.

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.