home.social

#xcodetip — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #xcodetip, aggregated by home.social.

fetched live
  1. We can add link to functions in Xcode's documentation using the format ``Class\function``, for example, ``EffectApplier/addEffect(_:to:)``.
    #xcodetip

  2. We can add link to functions in Xcode's documentation using the format ``Class\function``, for example, ``EffectApplier/addEffect(_:to:)``.
    #xcodetip

  3. Shift+Command+A in the iOS simulator is a convenient way for verifying dark and light appearances
    #xcodetip

  4. Shift+Command+A in the iOS simulator is a convenient way for verifying dark and light appearances
    #xcodetip

  5. While refactoring it is convenient to use the Xcode’s feature of double clicking on a curly brace selects the whole code block.
    #xcodetip #iosdev

  6. While refactoring it is convenient to use the Xcode’s feature of double clicking on a curly brace selects the whole code block.
    #xcodetip #iosdev

  7. #XcodeTip I’ve just learned that #xcode can autocomplete the last argument closure into the trailing closure if you press enter while the argument is highlighted. Boy, how many hours did I waste writing trailing closures manually? #swift #swiftui #XcodeTips

  8. #XcodeTip: I often find myself importing the same frameworks in #Swift over & over again. With #OSLog adoption it got really annoying, so I created this to solve it:
    github.com/FlineDev/Foundation

    Now, I just `import AppFoundation` & get access to all I need.🤩

    And you can do it, too!

  9. #XcodeTip: I often find myself importing the same frameworks in #Swift over & over again. With #OSLog adoption it got really annoying, so I created this to solve it:
    github.com/FlineDev/Foundation

    Now, I just `import AppFoundation` & get access to all I need.🤩

    And you can do it, too!

  10. Xcode 15 has a quick action picker which can be triggered with Shift+Command+A. So much easier to discover different actions!
    #xcodetip #iosdev

  11. Xcode 15 has a quick action picker which can be triggered with Shift+Command+A. So much easier to discover different actions!
    #xcodetip #iosdev

  12. Xcode 15 comes with a live documentation preview and it sure is handy to see how the generated documentations looks like immediately. Can be enabled with choosing Editor > Assistant > Documentation Preview.
    #xcodetip

  13. Xcode allows simulating different conditions when connecting a device, navigating to Window->Devices and Simulators->Devices. Makes it easy to simulate tough network conditions, thermal states or GPU states.
    #xcodetip #iosdev

  14. Enabling RUN_DOCUMENTATION_COMPILER build setting in Xcode updates the project's documentation in the developer documentation window with each of the build.
    #xcodetip #iosdev

  15. Xcode has a Development Assets setting which defines a path to assets or code which should be only available in debug builds. For example, this opens up using additional images or anything like JSON data for creating rich SwiftUI previews.
    #xcodetip #iosdev