GithubHelp home page GithubHelp logo

Comments (7)

fungilation avatar fungilation commented on June 29, 2024 1

Ah. I confirm changing Build Settings to Swift 4.0 works with original .bold on build. Closing

from showtime.

KaneCheshire avatar KaneCheshire commented on June 29, 2024

Hmm that's weird. Do you know which version of Swift it's trying to compile to? It might work if you use the Swift 3 version instead of the Swift 4 version of ShowTime

from showtime.

fungilation avatar fungilation commented on June 29, 2024

It's set to Swift 3.2 (I haven't changed it) in the root of my Xcode project > Build Settings. It's a manual install so I just dropped the latest (2.3) version of ShowTime.swift into my project.

Everything works great though with my change, so I'm just reporting.

from showtime.

KaneCheshire avatar KaneCheshire commented on June 29, 2024

Ah okay, yeah in Swift 4 they changed some of the global variables likeUIFontWeightBold to be namespaced, but it's not backwards compatible. If you use the Swift 3 version of ShowTime it should still work without any changes needed:

https://github.com/KaneCheshire/ShowTime/tree/1.0.1

from showtime.

fungilation avatar fungilation commented on June 29, 2024

Umm you got it the other way around. My Xcode build settings is set to Swift 3.2, I haven't changed it.

from showtime.

KaneCheshire avatar KaneCheshire commented on June 29, 2024

I'm not saying you have, I'm saying you're using the Swift 4 version of ShowTime which won't work if your project is using Swift 3.2, because in Swift 4 UIFontWeightBold was changed to .bold which is why you have to change it manually back to UIFontWeightBold.

The latest version of Showtime (2.3) won't work with Swift 3.2, so you should use version 1.0.1 which I've linked to above.

The README does have specific instructions for Swift 3 installation for this very reason: https://github.com/KaneCheshire/ShowTime#installation-swift-3

from showtime.

KaneCheshire avatar KaneCheshire commented on June 29, 2024

Awesome thanks for checking!

from showtime.

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.