Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Encapsulation of My Personal App List

License

NotificationsYou must be signed in to change notification settings

jaywcjlove/MyAppListKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

English

Usingmy app is also a way tosupport me:
KeyzerVidwall HubVidCropVidwallMousio HintMousioMusicerAudioerFileSentinelFocusCursorVideoerKeyClickerDayBarIconedMousioQuick RSSQuick RSSWeb ServeCopybook GeneratorDevTutor for SwiftUIRegexMateTime PassageIconize FolderTextsound SaverCreate Custom SymbolsDevHubResume RevisePalette GeniusSymbol Scribe

MyAppListKit

Encapsulation of My Personal App List

Welcome to downloadDevTutor, a cheat sheet app designed to help developers quickly build excellent applications using SwiftUI.

DevTutor for SwiftUI AppStore

Installation

You can add MyAppListKit to an Xcode project by adding it as a package dependency.

  1. From the File menu, select Add Packages…
  2. Enterhttps://github.com/jaywcjlove/MyAppListKit in the Search or Enter Package URL search field
  3. LinkMyAppListKit to your application target

Or add the following toPackage.swift:

.package(url:"https://github.com/jaywcjlove/MyAppListKit", branch:"main")

Oradd the package in Xcode.

Usage

import MyAppListKitList{ForEach(MyAppList.apps(), id: \.appId){ appinButton(app.name, action:{            app.openApp()            // orMyAppList.openApp(appId: app.appId, appstoreId: app.appstoreId)})}}Button("More Apps by Me"){MyAppList.openURL(url:URL(string:MyAppList.appsByMe)!)    // orMyAppList.openAppsByMe()}MyAppList.appDevHub           // -> AppDataMyAppList.appDevHub.storeURL  // -> URL: macappstore://apps.apple.com/app/id6476452351MyAppList.appDevHub.appStoreWriteReview  // -> URL: macappstore://apps.apple.com/app/id6476452351?action=write-reviewMyAppList.appDevHub.openURL() // Open in browserMyAppList.appDevHub.openWriteReviewURL() // Open WriteReview in browserMyAppList.appDevHub.openApp() // Open the app or its store download pageMyAppList.appDevHub.openWriteReviewURL() // Open the app or its store download page

Returns the URL of the default app associated with the given bundle identifier.

MyAppList.appDevHub.appURL()

Checks if the app is installed

MyAppList.isAppInstalled(appId:"com.wangchujiang.daybar")

Get app icon

MyAppList.getAppIcon() // Get the app's App Store icon// Get icon using bundleIdentifier (if app is installed locally)MyAppList.getAppIcon(forId:"com.wangchujiang.vidwall") // Get icon using bundleIdentifier; if not found locally, fallback to App Store iconMyAppList.getAppIcon(forId:"com.wangchujiang.vidwall", defaultAppStore:true) // Get icon using bundleIdentifier; if not found locally, fetch from App Store using appstoreIdMyAppList.getAppIcon(forId:"com.wangchujiang.vidwall", appstoreId:"6747587746") // Fetch icon directly from App Store using the app's IDMyAppList.fetchAppIconFromAppStore(appId:"6747587746")

MyAppCheckForUpdatesView

import MyAppListKitstructContentView:View{varbody:someView{MyAppCheckForUpdatesView(app:MyAppList.appIconed)MyAppCheckForUpdatesView(app:MyAppList.appIconed){ labelinHStack{Text(label)Spacer()Image(systemName:"chevron.right")}}.frame(maxWidth:.infinity).buttonStyle(.link)}}

MoreAppsView

Display My Apps on the Menu.

structCommandMenus:Commands{varbody:someCommands{        //CommandMenu("More Tools") {        //    MoreAppsView()        //}MoreAppsCommandMenus()MoreAppsCommandMenus(){Group{                // ....}}CommandGroup(replacing:CommandGroupPlacement.help){MoreAppsMenuView()}}}

ButtonRateApp & ButtonSendFeedback

A button that guides users to rate or review the app on the App Store. When clicked, it opens the “Write a Review” page for the current app.

structCommandMenus:Commands{varbody:someCommands{CommandGroup(replacing:CommandGroupPlacement.help){ButtonWebsite(app:MyAppList.appRegexMate)ButtonRateApp(app:MyAppList.appRegexMate)Divider()ButtonSendFeedback(app:MyAppList.appRegexMate)}}}

MoreAppsCommandMenus

import MyAppListKit@mainstructIconizeFolderApp:App{varbody:someScene{returnWindow("", id:"MainWindow"){ContentView()}.commands{MoreAppsCommandMenus()}}}

My Apps List

ForEach(MyAppList.apps(), id: \.appId){ appinButton(action:{MyAppList.openApp(appId: app.appId, appstoreId: app.appstoreId)}, label:{Label(title:{VStack(alignment:.leading){Text(app.name).font(.system(size:12)).multilineTextAlignment(.leading)iflet desc= app.desc{Text(desc.localized(locale: locale)).lineLimit(nil).fixedSize(horizontal:false, vertical:true).foregroundStyle(Color.secondary).font(.system(size:10)).multilineTextAlignment(.leading).lineSpacing(0).frame(maxWidth:.infinity, alignment:.leading)}}.frame(maxWidth:.infinity, alignment:.leading)}, icon:{MoreAppsIcon(appId: app.appId, appstoreId: app.appstoreId)})}).buttonStyle(.link)}

License

Licensed under the MIT License.


[8]ページ先頭

©2009-2025 Movatter.jp