Skip to content

Instantly share code, notes, and snippets.

View ecr007's full-sized avatar
Github Refactoring ... 10%

ECR007 ecr007

Github Refactoring ... 10%
  • ...
  • In The World
View GitHub Profile
@ecr007
ecr007 / xcrun.sh
Created September 8, 2022 16:50
Open IOS APP From Command Line (xcrun)
xcrun simctl openurl booted schemeURL (eg. yourapp://viewer?id=5)
@ecr007
ecr007 / ScrollableView.swift
Created June 3, 2023 16:06 — forked from jfuellert/ScrollableView.swift
A scrollable SwiftUI view, UIScrollView wrapper. ScrollableView lets you read and write content offsets for scrollview in SwiftUI, with and without animations.
import SwiftUI
struct ScrollableView<Content: View>: UIViewControllerRepresentable, Equatable {
// MARK: - Coordinator
final class Coordinator: NSObject, UIScrollViewDelegate {
// MARK: - Properties
private let scrollView: UIScrollView
var offset: Binding<CGPoint>