Skip to content

Commit

Permalink
deploy: 7a79947
Browse files Browse the repository at this point in the history
  • Loading branch information
muukii committed Mar 23, 2024
1 parent 6cd936b commit 081e9b0
Show file tree
Hide file tree
Showing 1,552 changed files with 1,552 additions and 1,552 deletions.
2 changes: 1 addition & 1 deletion Verge/data/documentation/verge.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Verge/data/documentation/verge/activity.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"primaryContentSections":[{"kind":"content","content":[{"anchor":"What-Activity-brings-to-us","level":2,"type":"heading","text":"What Activity brings to us"},{"type":"paragraph","inlineContent":[{"type":"text","text":"Activity enables Event-driven partially."}]},{"type":"paragraph","inlineContent":[{"type":"text","text":"Verge supports to send any events that won’t be stored persistently. Even if an application runs with State-Driven, it might have some issues that not easy to something with State-Driven."}]},{"type":"paragraph","inlineContent":[{"type":"text","text":"For example, something that would happen with the timer’s trigger. It’s probably not easy to expressing that as a state."},{"type":"text","text":" "},{"type":"text","text":"In this case, Activity helps that can do easily."}]},{"type":"paragraph","inlineContent":[{"type":"text","text":"This means Verge can use Event-Driven from Data-Driven partially."},{"type":"text","text":" "},{"type":"text","text":"We think it’s not so special concept. SwiftUI supports these use cases as well that using Combine’s Publisher."}]},{"type":"codeListing","syntax":"swift","code":["func onReceive<P>(_ publisher: P, perform action: @escaping (P.Output) -> Void) -> some View where P : Publisher, P.Failure == Never"]},{"type":"paragraph","inlineContent":[{"type":"reference","isActive":true,"identifier":"https:\/\/developer.apple.com\/documentation\/swiftui\/view\/3365935-onreceive"}]},{"anchor":"Add-Activity-to-the-Store","level":2,"type":"heading","text":"Add Activity to the Store"},{"type":"paragraph","inlineContent":[{"type":"text","text":"In sample code following this:"}]},{"type":"codeListing","syntax":"swift","code":["final class MyStore: StoreComponentType {",""," struct State {"," ..."," }","","}"]},{"type":"paragraph","inlineContent":[{"type":"text","text":"To enable using Activity, we add new decralation just like this:"}]},{"type":"codeListing","syntax":"swift","code":["final class MyStore: StoreComponentType {",""," struct State {"," ..."," }",""," \/\/\/ 👇"," enum Activity {"," case didSendMessage"," }","","}"]},{"anchor":"Send-an-Activity","level":2,"type":"heading","text":"Send an Activity"},{"type":"paragraph","inlineContent":[{"type":"text","text":"And finally, that Store now can emit an activity that we created."}]},{"type":"codeListing","syntax":"swift","code":["extension MyStore {"," func sendMessage() {"," send(.didSendMessage)"," }","}"]},{"anchor":"Subscribe-the-Activity","level":2,"type":"heading","text":"Subscribe the Activity"},{"type":"paragraph","inlineContent":[{"type":"strong","inlineContent":[{"type":"text","text":"Normal"}]}]},{"type":"codeListing","syntax":"swift","code":["store.sinkActivity { activity in"," ...","}",".store(in: &subscriptions)"]},{"type":"paragraph","inlineContent":[{"type":"strong","inlineContent":[{"type":"text","text":"Using Combine"}]}]},{"type":"codeListing","syntax":"swift","code":["store"," .activityPublisher"," .sink { event in"," \/\/ do something"," }"," .store(in: &subscriptions)"]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/verge\/activity"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/Verge\/documentation\/Verge\/Activity","interfaceLanguage":"swift"},"kind":"article","metadata":{"roleHeading":"Article","title":"Activity","role":"article","modules":[{"name":"Verge"}]},"hierarchy":{"paths":[["doc:\/\/Verge\/documentation\/Verge"]]},"references":{"https://developer.apple.com/documentation/swiftui/view/3365935-onreceive":{"title":"Apple’s SwiftUI Ref","titleInlineContent":[{"type":"text","text":"Apple’s SwiftUI Ref"}],"type":"link","identifier":"https:\/\/developer.apple.com\/documentation\/swiftui\/view\/3365935-onreceive","url":"https:\/\/developer.apple.com\/documentation\/swiftui\/view\/3365935-onreceive"},"doc://Verge/documentation/Verge":{"role":"collection","title":"Verge","abstract":[],"identifier":"doc:\/\/Verge\/documentation\/Verge","kind":"symbol","type":"topic","url":"\/documentation\/verge"}}}
{"primaryContentSections":[{"kind":"content","content":[{"anchor":"What-Activity-brings-to-us","level":2,"type":"heading","text":"What Activity brings to us"},{"type":"paragraph","inlineContent":[{"type":"text","text":"Activity enables Event-driven partially."}]},{"type":"paragraph","inlineContent":[{"type":"text","text":"Verge supports to send any events that won’t be stored persistently. Even if an application runs with State-Driven, it might have some issues that not easy to something with State-Driven."}]},{"type":"paragraph","inlineContent":[{"type":"text","text":"For example, something that would happen with the timer’s trigger. It’s probably not easy to expressing that as a state."},{"type":"text","text":" "},{"type":"text","text":"In this case, Activity helps that can do easily."}]},{"type":"paragraph","inlineContent":[{"type":"text","text":"This means Verge can use Event-Driven from Data-Driven partially."},{"type":"text","text":" "},{"type":"text","text":"We think it’s not so special concept. SwiftUI supports these use cases as well that using Combine’s Publisher."}]},{"type":"codeListing","syntax":"swift","code":["func onReceive<P>(_ publisher: P, perform action: @escaping (P.Output) -> Void) -> some View where P : Publisher, P.Failure == Never"]},{"type":"paragraph","inlineContent":[{"type":"reference","isActive":true,"identifier":"https:\/\/developer.apple.com\/documentation\/swiftui\/view\/3365935-onreceive"}]},{"anchor":"Add-Activity-to-the-Store","level":2,"type":"heading","text":"Add Activity to the Store"},{"type":"paragraph","inlineContent":[{"type":"text","text":"In sample code following this:"}]},{"type":"codeListing","syntax":"swift","code":["final class MyStore: StoreComponentType {",""," struct State {"," ..."," }","","}"]},{"type":"paragraph","inlineContent":[{"type":"text","text":"To enable using Activity, we add new decralation just like this:"}]},{"type":"codeListing","syntax":"swift","code":["final class MyStore: StoreComponentType {",""," struct State {"," ..."," }",""," \/\/\/ 👇"," enum Activity {"," case didSendMessage"," }","","}"]},{"anchor":"Send-an-Activity","level":2,"type":"heading","text":"Send an Activity"},{"type":"paragraph","inlineContent":[{"type":"text","text":"And finally, that Store now can emit an activity that we created."}]},{"type":"codeListing","syntax":"swift","code":["extension MyStore {"," func sendMessage() {"," send(.didSendMessage)"," }","}"]},{"anchor":"Subscribe-the-Activity","level":2,"type":"heading","text":"Subscribe the Activity"},{"type":"paragraph","inlineContent":[{"type":"strong","inlineContent":[{"type":"text","text":"Normal"}]}]},{"type":"codeListing","syntax":"swift","code":["store.sinkActivity { activity in"," ...","}",".store(in: &subscriptions)"]},{"type":"paragraph","inlineContent":[{"type":"strong","inlineContent":[{"type":"text","text":"Using Combine"}]}]},{"type":"codeListing","syntax":"swift","code":["store"," .activityPublisher"," .sink { event in"," \/\/ do something"," }"," .store(in: &subscriptions)"]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/verge\/activity"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/Verge\/documentation\/Verge\/Activity","interfaceLanguage":"swift"},"kind":"article","metadata":{"roleHeading":"Article","title":"Activity","role":"article","modules":[{"name":"Verge"}]},"hierarchy":{"paths":[["doc:\/\/Verge\/documentation\/Verge"]]},"references":{"doc://Verge/documentation/Verge":{"role":"collection","title":"Verge","abstract":[],"identifier":"doc:\/\/Verge\/documentation\/Verge","kind":"symbol","type":"topic","url":"\/documentation\/verge"},"https://developer.apple.com/documentation/swiftui/view/3365935-onreceive":{"title":"Apple’s SwiftUI Ref","titleInlineContent":[{"type":"text","text":"Apple’s SwiftUI Ref"}],"type":"link","identifier":"https:\/\/developer.apple.com\/documentation\/swiftui\/view\/3365935-onreceive","url":"https:\/\/developer.apple.com\/documentation\/swiftui\/view\/3365935-onreceive"}}}
2 changes: 1 addition & 1 deletion Verge/data/documentation/verge/activitylog.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"ActivityLog"}],"languages":["swift"],"platforms":["macOS"]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/verge\/activitylog"],"traits":[{"interfaceLanguage":"swift"}]}],"relationshipsSections":[{"identifiers":["doc:\/\/Verge\/SE"],"kind":"relationships","title":"Conforms To","type":"conformsTo"}],"identifier":{"url":"doc:\/\/Verge\/documentation\/Verge\/ActivityLog","interfaceLanguage":"swift"},"topicSections":[{"title":"Initializers","identifiers":["doc:\/\/Verge\/documentation\/Verge\/ActivityLog\/init(storeName:trace:)"]},{"title":"Instance Properties","identifiers":["doc:\/\/Verge\/documentation\/Verge\/ActivityLog\/store","doc:\/\/Verge\/documentation\/Verge\/ActivityLog\/trace","doc:\/\/Verge\/documentation\/Verge\/ActivityLog\/type"]}],"kind":"symbol","metadata":{"fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"ActivityLog"}],"title":"ActivityLog","roleHeading":"Structure","role":"symbol","symbolKind":"struct","externalID":"s:5Verge11ActivityLogV","modules":[{"name":"Verge"}],"navigatorTitle":[{"kind":"identifier","text":"ActivityLog"}]},"hierarchy":{"paths":[["doc:\/\/Verge\/documentation\/Verge"]]},"references":{"doc://Verge/documentation/Verge/ActivityLog/init(storeName:trace:)":{"role":"symbol","title":"init(storeName:trace:)","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"storeName"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"kind":"text","text":", "},{"kind":"externalParam","text":"trace"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"ActivityTrace","preciseIdentifier":"s:5Verge13ActivityTraceV"},{"kind":"text","text":")"}],"abstract":[],"identifier":"doc:\/\/Verge\/documentation\/Verge\/ActivityLog\/init(storeName:trace:)","kind":"symbol","type":"topic","url":"\/documentation\/verge\/activitylog\/init(storename:trace:)"},"doc://Verge/documentation/Verge/ActivityLog/store":{"role":"symbol","title":"store","fragments":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"kind":"identifier","text":"store"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"abstract":[],"identifier":"doc:\/\/Verge\/documentation\/Verge\/ActivityLog\/store","kind":"symbol","type":"topic","url":"\/documentation\/verge\/activitylog\/store"},"doc://Verge/documentation/Verge/ActivityLog/type":{"role":"symbol","title":"type","fragments":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"kind":"identifier","text":"type"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"abstract":[],"identifier":"doc:\/\/Verge\/documentation\/Verge\/ActivityLog\/type","kind":"symbol","type":"topic","url":"\/documentation\/verge\/activitylog\/type"},"doc://Verge/documentation/Verge":{"role":"collection","title":"Verge","abstract":[],"identifier":"doc:\/\/Verge\/documentation\/Verge","kind":"symbol","type":"topic","url":"\/documentation\/verge"},"doc://Verge/SE":{"type":"unresolvable","title":"Swift.Encodable","identifier":"doc:\/\/Verge\/SE"},"doc://Verge/documentation/Verge/ActivityLog":{"role":"symbol","title":"ActivityLog","fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"ActivityLog"}],"abstract":[],"identifier":"doc:\/\/Verge\/documentation\/Verge\/ActivityLog","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"ActivityLog"}],"url":"\/documentation\/verge\/activitylog"},"doc://Verge/documentation/Verge/ActivityLog/trace":{"role":"symbol","title":"trace","fragments":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"kind":"identifier","text":"trace"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"ActivityTrace","preciseIdentifier":"s:5Verge13ActivityTraceV"}],"abstract":[],"identifier":"doc:\/\/Verge\/documentation\/Verge\/ActivityLog\/trace","kind":"symbol","type":"topic","url":"\/documentation\/verge\/activitylog\/trace"}}}
{"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"ActivityLog"}],"languages":["swift"],"platforms":["macOS"]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/verge\/activitylog"],"traits":[{"interfaceLanguage":"swift"}]}],"relationshipsSections":[{"identifiers":["doc:\/\/Verge\/SE"],"kind":"relationships","title":"Conforms To","type":"conformsTo"}],"identifier":{"url":"doc:\/\/Verge\/documentation\/Verge\/ActivityLog","interfaceLanguage":"swift"},"topicSections":[{"title":"Initializers","identifiers":["doc:\/\/Verge\/documentation\/Verge\/ActivityLog\/init(storeName:trace:)"]},{"title":"Instance Properties","identifiers":["doc:\/\/Verge\/documentation\/Verge\/ActivityLog\/store","doc:\/\/Verge\/documentation\/Verge\/ActivityLog\/trace","doc:\/\/Verge\/documentation\/Verge\/ActivityLog\/type"]}],"kind":"symbol","metadata":{"fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"ActivityLog"}],"title":"ActivityLog","roleHeading":"Structure","role":"symbol","symbolKind":"struct","externalID":"s:5Verge11ActivityLogV","modules":[{"name":"Verge"}],"navigatorTitle":[{"kind":"identifier","text":"ActivityLog"}]},"hierarchy":{"paths":[["doc:\/\/Verge\/documentation\/Verge"]]},"references":{"doc://Verge/documentation/Verge/ActivityLog/init(storeName:trace:)":{"role":"symbol","title":"init(storeName:trace:)","fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"("},{"kind":"externalParam","text":"storeName"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"kind":"text","text":", "},{"kind":"externalParam","text":"trace"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"ActivityTrace","preciseIdentifier":"s:5Verge13ActivityTraceV"},{"kind":"text","text":")"}],"abstract":[],"identifier":"doc:\/\/Verge\/documentation\/Verge\/ActivityLog\/init(storeName:trace:)","kind":"symbol","type":"topic","url":"\/documentation\/verge\/activitylog\/init(storename:trace:)"},"doc://Verge/documentation/Verge/ActivityLog/type":{"role":"symbol","title":"type","fragments":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"kind":"identifier","text":"type"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"abstract":[],"identifier":"doc:\/\/Verge\/documentation\/Verge\/ActivityLog\/type","kind":"symbol","type":"topic","url":"\/documentation\/verge\/activitylog\/type"},"doc://Verge/documentation/Verge/ActivityLog":{"role":"symbol","title":"ActivityLog","fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"ActivityLog"}],"abstract":[],"identifier":"doc:\/\/Verge\/documentation\/Verge\/ActivityLog","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"ActivityLog"}],"url":"\/documentation\/verge\/activitylog"},"doc://Verge/documentation/Verge":{"role":"collection","title":"Verge","abstract":[],"identifier":"doc:\/\/Verge\/documentation\/Verge","kind":"symbol","type":"topic","url":"\/documentation\/verge"},"doc://Verge/documentation/Verge/ActivityLog/trace":{"role":"symbol","title":"trace","fragments":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"kind":"identifier","text":"trace"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"ActivityTrace","preciseIdentifier":"s:5Verge13ActivityTraceV"}],"abstract":[],"identifier":"doc:\/\/Verge\/documentation\/Verge\/ActivityLog\/trace","kind":"symbol","type":"topic","url":"\/documentation\/verge\/activitylog\/trace"},"doc://Verge/SE":{"type":"unresolvable","title":"Swift.Encodable","identifier":"doc:\/\/Verge\/SE"},"doc://Verge/documentation/Verge/ActivityLog/store":{"role":"symbol","title":"store","fragments":[{"kind":"keyword","text":"let"},{"kind":"text","text":" "},{"kind":"identifier","text":"store"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"}],"abstract":[],"identifier":"doc:\/\/Verge\/documentation\/Verge\/ActivityLog\/store","kind":"symbol","type":"topic","url":"\/documentation\/verge\/activitylog\/store"}}}
Loading

0 comments on commit 081e9b0

Please sign in to comment.