This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import SwiftUI | |
import MapKit | |
import Combine | |
class LocationSearchService: NSObject, ObservableObject, MKLocalSearchCompleterDelegate { | |
@Published var searchQuery = "" | |
var completer: MKLocalSearchCompleter | |
@Published var completions: [MKLocalSearchCompletion] = [] | |
var cancellable: AnyCancellable? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Modified version of epub-press-js (https://github.com/haroldtreen/epub-press-clients/tree/master/packages/epub-press-js) | |
* which runs in Scriptable on iOS. | |
* | |
* Saves an EPUB version of the given URL to an iCloud Drive folder | |
* | |
* Expects these Shortcut parameters to be passed in: | |
* title: string | |
* description: string | |
* url: string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct ContentView : View { | |
var body: some View { | |
ZStack(alignment: Alignment.top) { | |
MapView() | |
SlideOverCard { | |
VStack { | |
CoverImage(imageName: "maitlandbay") | |
Text("Maitland Bay") |