13 Replies
      Latest reply on Jun 18, 2019 12:18 PM by Claude31
      BioAlex Level 1 Level 1 (0 points)

        I don't know if this is a bug (though I highly doubt it's a feature) or what, but I find this behavior in XCode Playgrounds to be really annoying: whenever I start typing something (other than operator symbols, it seems) the screen scrolls up by a line, meaning the line I'm typing on moves down. It happens whenever I start to type any text that is not a symbol (except for @ and $). Which means if I'm typing a lot on a line, or just typing a lot continuously, then whatever I'm typing will scroll down off the screen in any case where I'm not a the top of that page. This might be easier to show than explain, so here's a quick video of what I'm talking about using the Enumerations Playground lab from the App Development with Swift course:

         

        https://youtu.be/JFWFFR8cYrM

         

        If this is intentional behavior or something caused by my set up, then I'd really like to know how to make it stop. If it's a bug, then I guess I should submit it. However, I wanted to check in and see if it's just me. Unfortunately my Google-Fu seems to be failing me when searching to see if anyone else is having an issue like this, or perhaps it's just not widespread.

         

        FWIW, I'm running the latest Xcode 10.2.1 (10E1001) on a mid-2014 MacBook Pro 13" Retina with the latest Mojave 10.14.4.

         

        Any thoughts or advice would be most welcome. I'm pretty new here as well as to iOS development and modern coding in general, so my apologies if this is in the wrong spot or if I was unable to successfully search for the answer if it has already been addressed.

        Cheers,
        Alex


        • Re: Playgrounds scroll while typing. Anyone else or just me?
          eskimo Apple Staff Apple Staff (12,325 points)

          This might be easier to show than explain, so here's a quick video of what I'm talking about

          Wow, that’s pretty crazy.  I’ve never experienced anything like that before.

          using the Enumerations Playground lab from the App Development with Swift course

          Can you post a link to that playground so that I can try out exactly what you were doing?  [The link will require moderation, but I can take care of that.]

          Share and Enjoy

          Quinn “The Eskimo!”
          Apple Developer Relations, Developer Technical Support, Core OS/Hardware
          let myEmail = "eskimo" + "1" + "@apple.com"

          • Re: Playgrounds scroll while typing. Anyone else or just me?
            skrpkn Level 1 Level 1 (0 points)

            Can confirm. Happens very often since last major upd. And very annoying.

            It does not depend on playgrounds content. At least for me.

            But (maybe?) happens more if you are using Rendered Markup thingy. Not sure tho.

            • Re: Playgrounds scroll while typing. Anyone else or just me?
              eskimo Apple Staff Apple Staff (12,325 points)

              If you have access to the Xcode 11 beta seed, please re-run your tests there.  My testing indicates that it has resolved the issue.

              Share and Enjoy

              Quinn “The Eskimo!”
              Apple Developer Relations, Developer Technical Support, Core OS/Hardware
              let myEmail = "eskimo" + "1" + "@apple.com"

                • Re: Playgrounds scroll while typing. Anyone else or just me?
                  BioAlex Level 1 Level 1 (0 points)

                  Confirmed. This bug no longer seems to occur in the Xcode 11 beta. Thanks.


                  I guess this question is a little off topic, but not worth a new thread: I'm very new to programming and stuff, as indicated by the fact that I'm working my way through the "App Development with Swift" iBook; apart from the normal caveat of "It's a beta, so there may be bugs", should I have any worries about using XCode 11 beta as I continue to work through the course (i.e. things working differently so perhaps following examples in the book won't work; I've already run into small examples of this due the book not being completely updated regarding some changes between Swift 3 and Swift 4)? Or should I be pretty much fine for the most part?

                  Anyway, thank you for your attention in the matter of the annoying scrolling while typing bug; glad to see it has been fixed for XCode 11. Cheers.


                    • Re: Playgrounds scroll while typing. Anyone else or just me?
                      eskimo Apple Staff Apple Staff (12,325 points)

                      Or should I be pretty much fine for the most part?

                      Probably, but my recommendation is that you use the Xcode version that the tutorial was designed for.  There is a small amount of drift over time — some in Swift, but even more in Apple’s SDKs — and, as someone who’s just getting started, it’s hard to know whether a problem you’ve encountered is your bug, a bug in the tutorial, or just an example of this drift.  If you use the version of Xcode associated with the tutorial, you can rule out the last case.

                      Keep in mind that you can have multiple versions of Xcode installed (if you have the disk space), and so you can use Xcode 11 beta for up-to-date testing, Xcode 10.2.1 for production work, and whatever older version of Xcode is needed by your tutorial.

                      Current I have the following installed on my main Mac:

                      • Xcode 8.3.3
                      • Xcode 9.4
                      • Xcode 10.2
                      • Xcode 10.2.1
                      • Xcode 11.0b1

                      And that’s a culled list, because I had to delete a bunch of older versions to free up space for all the goodies we released at WWDC.

                      Share and Enjoy

                      Quinn “The Eskimo!”
                      Apple Developer Relations, Developer Technical Support, Core OS/Hardware
                      let myEmail = "eskimo" + "1" + "@apple.com"

                      • Re: Playgrounds scroll while typing. Anyone else or just me?
                        Claude31 Level 8 Level 8 (7,005 points)

                        When learning, I always find it better to have the lesson and the tool on par (as long as noe of them is obviously obsolete). Otherwise you constantly ask: is it me or the environment.