First set up a project directory to hold your work:
cd ~/projects
mkdir mapnik-ios-test
cd mapnik-ios-test
// Run any SwiftUI view as a Mac app. | |
import Cocoa | |
import SwiftUI | |
NSApplication.shared.run { | |
VStack { | |
Text("Hello, World") | |
.padding() | |
.background(Capsule().fill(Color.blue)) |
addmedia | |
addphoto | |
addvideo | |
appinfo | |
boot | |
bootstatus | |
clone | |
create | |
darwinup | |
delete |
/// Similar to a `Binding`, but this is also observable/dynamic. | |
@propertyDelegate | |
@dynamicMemberLookup | |
final class Derived<A>: BindableObject { | |
let didChange = PassthroughSubject<A, Never>() | |
fileprivate var cancellables: [AnyCancellable] = [] | |
private let get: () -> (A) | |
private let mutate: ((inout A) -> ()) -> () | |
init(get: @escaping () -> A, mutate: @escaping ((inout A) -> ()) -> ()) { | |
self.get = get |
// | |
// TalkDockViewController.swift | |
// Dockee | |
// | |
// Created by Danny Hertz on 11/30/18. | |
// Copyright © 2018 Danny Hertz. All rights reserved. | |
// | |
import Foundation | |
import RxCocoa |
#!/bin/bash | |
# run_ios_sim builds and runs an iOS app on the simulator | |
# | |
# It is designed to replicate the behavior of "Run" in Xcode and assumes basic | |
# xcodebuild usage. | |
# | |
# USAGE: | |
# export IOS_SIM_UDID=342F9A20-DF48-41A9-BE60-C6B35F47E97F; \ | |
# export BUNDLE_IDENTIFIER=a.Some; \ | |
# export APP_PATH=$PWD/Build/Debug-iphonesimulator/$APP_NAME.app \ |
// | |
// CCBlockTableViewDataSource.h | |
// | |
// Created by Tristan O'Tierney on 1/24/11. | |
// | |
#import <UIKit/UIKit.h> | |
@interface CCBlockTableViewDataSource : NSObject <UITableViewDataSource, UITableViewDelegate> { |