Giter Site home page Giter Site logo

Comments (5)

funnel20 avatar funnel20 commented on June 14, 2024 1

@futuretap I'm a fan of SF Symbols, since the benefits are multiple. It creates a consistent and intuitive UI, without having to add tons of images to an App bundle.

It would be very convenient and highly appreciated when you can add support for SF Symbols (see: systemImageNamed:) to your brilliant project.

from inappsettingskit.

futuretap avatar futuretap commented on June 14, 2024

Interesting idea. What exactly are you looking for? In which element would you like to see system image support?

from inappsettingskit.

akhiljayaram avatar akhiljayaram commented on June 14, 2024

// I just added a hack like this
extension IASKSpecifier
{
var cellSystemImage: UIImage?
{
if let imageName = specifierDict["IASKCellSystemImage"] as? String
{
return UIImage(systemName: imageName)
}
return nil
}
}

// and in cell for indexPath add

override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell
{
let cell = super.tableView(tableView, cellForRowAt: indexPath)
if let specifier = self.settingsReader?.specifier(for: indexPath)
{
cell.imageView?.image = specifier.cellSystemImage
}
cell.imageView?.tintColor = .label
return cell
}

from inappsettingskit.

pdobrigkeit avatar pdobrigkeit commented on June 14, 2024

I would also really like to see this feature. Makes adding premade symbols to the slider for example very easy

from inappsettingskit.

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.