TipKit SwiftUI explained: Showing tips, conditional, swift macro rules, new in WWDC 2023, iOS 17

Поділитися
Вставка
  • Опубліковано 6 лип 2024
  • This is a detailed explanation of using the new TipKit framework in SwiftUI. It talks about defining Tip struct, adding image, title, description, options (using Swift Macro), and rules (controlling whether the rule is shown or not). Including in-line view and popover view.
    Article:
    mszpro.com/blog/ios17-tipkit-...
    Japanese: mszpro.com/blog/tipkit-ios17-ja/
    Follow me on SNS:
    Twitter (X): / mszpro
    Mastodon: sns.mszpro.com (me@mszpro.com)
    Bluesky: mszpro.com
    Newest app I made using SwiftUI: mszpro.com/sorasns (1 iOS app to connect to Mastodon, Bluesky, Misskey, Firefish) on iOS. Personally developed by me.
    00:00 Why do we need to show tips on UI?
    01:56 Demo of what it looks like
    03:55 Defining a struct conforming to Tip protocol
    05:18 Showing in-line tip view
    06:22 Configuration of global display frequency and data storage
    07:36 Popover tip view modifier for tool bar item
    09:14 Rule based Tip with Swift Macro
    10:15 Usage frequency counter and usage based tips
    11:40 Adding option buttons to tip view
    13:05 Debug codes and functions
    13:55 Making compatible with iOS 16 and lower deployment targets, options for max display count for each tip
    16:41 Showing my recently solo developed app using SwiftUI: 1 app for Mastodon, Bluesky, Firefish, and Misskey.
  • Наука та технологія

КОМЕНТАРІ • 1

  • @true_rocknrolla
    @true_rocknrolla 23 години тому

    Hi! Thanks for the great video! It is very useful! I need a little help with TipKit. I have several items on one screen and I want to display hints for each one. These should be regular text tips, but I can't figure out how to make them appear one after the other in turn. I use Rule and it works great if I change the state by pressing a separate button, but I want to change the state on dismissing the tip