Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Converted by Storyboard to SwiftUI Converter - https://swiftify.com/converter/storyboard2swiftui
- import SwiftUI
- // --------------------------------------------------------------------------------
- // UINavigationController
- // --------------------------------------------------------------------------------
- NavigationView {
- Spacer() // TODO: replace with the actual content
- }
- // --------------------------------------------------------------------------------
- // MJRootViewController
- // --------------------------------------------------------------------------------
- struct MJRootView: View {
- var body: some View {
- ZStack(alignment: .topLeading) {
- GeometryReader { geometry in
- List {
- Spacer() // TODO: replace with the actual content
- }
- }
- }
- .frame(width: DynamicSizeHelper.getWidth(414), height: DynamicSizeHelper.getHeight(808))
- .background(Color(.white))
- .edgesIgnoringSafeArea(.all)
- }
- }
- struct MJRootView_Previews: PreviewProvider {
- static var previews: some View {
- MJRootView()
- }
- }
- // --------------------------------------------------------------------------------
- // Colors
- // --------------------------------------------------------------------------------
- List {
- Spacer() // TODO: replace with the actual content
- }
- // --------------------------------------------------------------------------------
- // MappaSensori
- // --------------------------------------------------------------------------------
- struct MappaSensoriView: View {
- var body: some View {
- ZStack(alignment: .topLeading) {
- GeometryReader { geometry in
- ScrollView {
- Spacer() // TODO: replace with the actual content
- }
- }
- }
- .frame(width: DynamicSizeHelper.getWidth(414), height: DynamicSizeHelper.getHeight(808))
- .background(Color(.white))
- .edgesIgnoringSafeArea(.all)
- }
- }
- struct MappaSensoriView_Previews: PreviewProvider {
- static var previews: some View {
- MappaSensoriView()
- }
- }
- // --------------------------------------------------------------------------------
- // NetworkConfig
- // --------------------------------------------------------------------------------
- List {
- Spacer() // TODO: replace with the actual content
- }
- // --------------------------------------------------------------------------------
- // UIViewController
- // --------------------------------------------------------------------------------
- struct UIView: View {
- var body: some View {
- ZStack(alignment: .topLeading) {
- GeometryReader { geometry in
- Image("P_pulsante2.png")
- .resizable()
- .aspectRatio(contentMode: .fit)
- .frame(width: DynamicSizeHelper.getWidth(240), height: DynamicSizeHelper.getHeight(128))
- .clipped()
- .offset(x: DynamicSizeHelper.getOffsetX(92), y: DynamicSizeHelper.getOffsetY(339))
- }
- }
- .frame(width: DynamicSizeHelper.getWidth(414), height: DynamicSizeHelper.getHeight(896))
- .background(Color(.white))
- .edgesIgnoringSafeArea(.all)
- }
- }
- struct UIView_Previews: PreviewProvider {
- static var previews: some View {
- UIView()
- }
- }
- // --------------------------------------------------------------------------------
- // ListaSensori
- // --------------------------------------------------------------------------------
- List {
- Spacer() // TODO: replace with the actual content
- }
- // --------------------------------------------------------------------------------
- // UINavigationController
- // --------------------------------------------------------------------------------
- NavigationView {
- Spacer() // TODO: replace with the actual content
- }
- // --------------------------------------------------------------------------------
- // Debug_json
- // --------------------------------------------------------------------------------
- List {
- Spacer() // TODO: replace with the actual content
- }
- // --------------------------------------------------------------------------------
- // Language
- // --------------------------------------------------------------------------------
- List {
- Spacer() // TODO: replace with the actual content
- }
- // --------------------------------------------------------------------------------
- // NewSensorListTableController
- // --------------------------------------------------------------------------------
- List {
- Spacer() // TODO: replace with the actual content
- }
- // --------------------------------------------------------------------------------
- // AmbientiListTableController
- // --------------------------------------------------------------------------------
- struct AmbientiListTableView: View {
- var body: some View {
- ZStack(alignment: .topLeading) {
- GeometryReader { geometry in
- List {
- Spacer() // TODO: replace with the actual content
- }
- }
- }
- .frame(width: DynamicSizeHelper.getWidth(414), height: DynamicSizeHelper.getHeight(808))
- .background(Color(.white))
- .edgesIgnoringSafeArea(.all)
- }
- }
- struct AmbientiListTableView_Previews: PreviewProvider {
- static var previews: some View {
- AmbientiListTableView()
- }
- }
- // --------------------------------------------------------------------------------
- // AndruinoServerPhp
- // --------------------------------------------------------------------------------
- List {
- Spacer() // TODO: replace with the actual content
- }
- // --------------------------------------------------------------------------------
- // Configuration
- // --------------------------------------------------------------------------------
- List {
- Spacer() // TODO: replace with the actual content
- }
- // --------------------------------------------------------------------------------
- // LoggerTableController
- // --------------------------------------------------------------------------------
- List {
- Spacer() // TODO: replace with the actual content
- }
- // --------------------------------------------------------------------------------
- // LoggerTableCtrlSensors
- // --------------------------------------------------------------------------------
- List {
- Spacer() // TODO: replace with the actual content
- }
- // --------------------------------------------------------------------------------
- // UINavigationController
- // --------------------------------------------------------------------------------
- NavigationView {
- Spacer() // TODO: replace with the actual content
- }
- // --------------------------------------------------------------------------------
- // FormulaSensore
- // --------------------------------------------------------------------------------
- List {
- Spacer() // TODO: replace with the actual content
- }
- // --------------------------------------------------------------------------------
- // PreferenzeSensore
- // --------------------------------------------------------------------------------
- List {
- Spacer() // TODO: replace with the actual content
- }
- // --------------------------------------------------------------------------------
- // SensorInfo
- // --------------------------------------------------------------------------------
- List {
- Spacer() // TODO: replace with the actual content
- }
- // --------------------------------------------------------------------------------
- // SensorInfoZoomImage
- // --------------------------------------------------------------------------------
- struct SensorInfoZoomImageView: View {
- var body: some View {
- ZStack(alignment: .topLeading) {
- GeometryReader { geometry in
- ScrollView {
- Spacer() // TODO: replace with the actual content
- }
- }
- }
- .frame(width: DynamicSizeHelper.getWidth(414), height: DynamicSizeHelper.getHeight(896))
- .edgesIgnoringSafeArea(.all)
- }
- }
- struct SensorInfoZoomImageView_Previews: PreviewProvider {
- static var previews: some View {
- SensorInfoZoomImageView()
- }
- }
- // --------------------------------------------------------------------------------
- // PickerDuration
- // --------------------------------------------------------------------------------
- struct PickerDurationView: View {
- var body: some View {
- ZStack(alignment: .topLeading) {
- GeometryReader { geometry in
- //Picker("", selection: $bindingVariable) {}
- Text("How long the output PIN will remain active").frame(width: DynamicSizeHelper.getWidth(320), height: DynamicSizeHelper.getHeight(60), alignment: .center)
- .clipped()
- .font(.system(size: 16, weight: .regular))
- .multilineTextAlignment(.center)
- .offset(x: DynamicSizeHelper.getOffsetX(47), y: DynamicSizeHelper.getOffsetY(114))
- Image("square_pulse")
- .resizable()
- .frame(width: DynamicSizeHelper.getWidth(206), height: DynamicSizeHelper.getHeight(54))
- .offset(x: DynamicSizeHelper.getOffsetX(110), y: DynamicSizeHelper.getOffsetY(377))
- Text("Label").frame(width: DynamicSizeHelper.getWidth(350), height: DynamicSizeHelper.getHeight(65), alignment: .center)
- .font(.system(size: 21, weight: .regular))
- .multilineTextAlignment(.center)
- .offset(x: DynamicSizeHelper.getOffsetX(32), y: DynamicSizeHelper.getOffsetY(214))
- }
- }
- .frame(width: DynamicSizeHelper.getWidth(414), height: DynamicSizeHelper.getHeight(808))
- .background(Color(.white))
- .edgesIgnoringSafeArea(.all)
- }
- }
- struct PickerDurationView_Previews: PreviewProvider {
- static var previews: some View {
- PickerDurationView()
- }
- }
- // --------------------------------------------------------------------------------
- // DatePicker
- // --------------------------------------------------------------------------------
- struct DatePickerView: View {
- var body: some View {
- ZStack(alignment: .topLeading) {
- GeometryReader { geometry in
- //DatePicker(selection: $selectedDate, in: dateClosedRange, displayedComponents: .date, label: { Text("Due Date") })
- Text("How long the output PIN will remain active").frame(width: DynamicSizeHelper.getWidth(320), height: DynamicSizeHelper.getHeight(60), alignment: .center)
- .clipped()
- .font(.system(size: 16, weight: .regular))
- .multilineTextAlignment(.center)
- .foregroundColor(Color(red: 0.0, green: 0.47843137, blue: 1.0))
- .offset(x: DynamicSizeHelper.getOffsetX(47), y: DynamicSizeHelper.getOffsetY(114))
- Text("Duration: 12:00").frame(width: DynamicSizeHelper.getWidth(350), height: DynamicSizeHelper.getHeight(59), alignment: .center)
- .font(.system(size: 21, weight: .regular))
- .multilineTextAlignment(.center)
- .offset(x: DynamicSizeHelper.getOffsetX(32), y: DynamicSizeHelper.getOffsetY(214))
- Image("square_pulse")
- .resizable()
- .frame(width: DynamicSizeHelper.getWidth(206), height: DynamicSizeHelper.getHeight(54))
- .offset(x: DynamicSizeHelper.getOffsetX(104), y: DynamicSizeHelper.getOffsetY(377))
- }
- }
- .frame(width: DynamicSizeHelper.getWidth(414), height: DynamicSizeHelper.getHeight(808))
- .background(Color(.white))
- .edgesIgnoringSafeArea(.all)
- }
- }
- struct DatePickerView_Previews: PreviewProvider {
- static var previews: some View {
- DatePickerView()
- }
- }
- // --------------------------------------------------------------------------------
- // SendMessage
- // --------------------------------------------------------------------------------
- struct SendMessageView: View {
- var body: some View {
- ZStack(alignment: .topLeading) {
- GeometryReader { geometry in
- ScrollView {
- Spacer() // TODO: replace with the actual content
- }
- }
- }
- .frame(width: DynamicSizeHelper.getWidth(414), height: DynamicSizeHelper.getHeight(808))
- .background(Color(red: 1.0, green: 1.0, blue: 1.0))
- .edgesIgnoringSafeArea(.all)
- }
- }
- struct SendMessageView_Previews: PreviewProvider {
- static var previews: some View {
- SendMessageView()
- }
- }
- // --------------------------------------------------------------------------------
- // SelettoreGenerico
- // --------------------------------------------------------------------------------
- struct SelettoreGenericoView: View {
- var body: some View {
- ZStack(alignment: .topLeading) {
- GeometryReader { geometry in
- //Picker("", selection: $bindingVariable) {}
- Text("Label").frame(width: DynamicSizeHelper.getWidth(320), height: DynamicSizeHelper.getHeight(81), alignment: .center)
- .clipped()
- .font(.system(size: 20, weight: .regular))
- .multilineTextAlignment(.center)
- .offset(x: DynamicSizeHelper.getOffsetX(46), y: DynamicSizeHelper.getOffsetY(125))
- Text("Label").frame(width: DynamicSizeHelper.getWidth(320), height: DynamicSizeHelper.getHeight(186), alignment: .center)
- .clipped()
- .font(.system(size: 20, weight: .regular))
- .multilineTextAlignment(.center)
- .offset(x: DynamicSizeHelper.getOffsetX(46), y: DynamicSizeHelper.getOffsetY(0))
- }
- }
- .frame(width: DynamicSizeHelper.getWidth(414), height: DynamicSizeHelper.getHeight(808))
- .background(Color(.white))
- .edgesIgnoringSafeArea(.all)
- }
- }
- struct SelettoreGenericoView_Previews: PreviewProvider {
- static var previews: some View {
- SelettoreGenericoView()
- }
- }
- // --------------------------------------------------------------------------------
- // AvvioApp
- // --------------------------------------------------------------------------------
- struct AvvioAppView: View {
- var body: some View {
- ZStack(alignment: .topLeading) {
- GeometryReader { geometry in
- ScrollView {
- Spacer() // TODO: replace with the actual content
- }
- }
- }
- .frame(width: DynamicSizeHelper.getWidth(414), height: DynamicSizeHelper.getHeight(896))
- .background(Color(.white))
- .edgesIgnoringSafeArea(.all)
- }
- }
- struct AvvioAppView_Previews: PreviewProvider {
- static var previews: some View {
- AvvioAppView()
- }
- }
- // --------------------------------------------------------------------------------
- // TabBarController
- // --------------------------------------------------------------------------------
- TabView {
- Spacer() // TODO: replace with the actual content
- }
- // --------------------------------------------------------------------------------
- // PolicyWeb
- // --------------------------------------------------------------------------------
- struct PolicyWebView: View {
- var body: some View {
- ZStack(content: {})
- .frame(width: DynamicSizeHelper.getWidth(414), height: DynamicSizeHelper.getHeight(896))
- .background(Color(.white))
- .edgesIgnoringSafeArea(.all)
- }
- }
- struct PolicyWebView_Previews: PreviewProvider {
- static var previews: some View {
- PolicyWebView()
- }
- }
- // --------------------------------------------------------------------------------
- // ListaGiorniSettamana
- // --------------------------------------------------------------------------------
- List {
- Spacer() // TODO: replace with the actual content
- }
- // --------------------------------------------------------------------------------
- // GraphView_config
- // --------------------------------------------------------------------------------
- List {
- Spacer() // TODO: replace with the actual content
- }
- // --------------------------------------------------------------------------------
- // GraphView
- // --------------------------------------------------------------------------------
- struct GraphView: View {
- var body: some View {
- ZStack(alignment: .topLeading) {
- GeometryReader { geometry in
- //Picker("", selection: $bindingVariable) {}
- ZStack(content: {})
- .frame(width: DynamicSizeHelper.getWidth(414), height: DynamicSizeHelper.getHeight(726))
- }
- }
- .frame(width: DynamicSizeHelper.getWidth(414), height: DynamicSizeHelper.getHeight(764))
- .background(Color(.white))
- .edgesIgnoringSafeArea(.all)
- }
- }
- struct GraphView_Previews: PreviewProvider {
- static var previews: some View {
- GraphView()
- }
- }
- // --------------------------------------------------------------------------------
- // GraphTabBViewController
- // --------------------------------------------------------------------------------
- TabView {
- Spacer() // TODO: replace with the actual content
- }
- // --------------------------------------------------------------------------------
- // ColorCollectionView
- // --------------------------------------------------------------------------------
- struct ColorCollectionView: View {
- var body: some View {
- ZStack(alignment: .topLeading) {
- GeometryReader { geometry in
- List {
- Spacer() // TODO: replace with the actual content
- }
- }
- }
- .frame(width: DynamicSizeHelper.getWidth(414), height: DynamicSizeHelper.getHeight(808))
- .background(Color(.white))
- .edgesIgnoringSafeArea(.all)
- }
- }
- struct ColorCollectionView_Previews: PreviewProvider {
- static var previews: some View {
- ColorCollectionView()
- }
- }
- // --------------------------------------------------------------------------------
- // VariabileSlider
- // --------------------------------------------------------------------------------
- List {
- Spacer() // TODO: replace with the actual content
- }
- // --------------------------------------------------------------------------------
- // SensoreDigitale
- // --------------------------------------------------------------------------------
- List {
- Spacer() // TODO: replace with the actual content
- }
- // --------------------------------------------------------------------------------
- // AppConfig
- // --------------------------------------------------------------------------------
- List {
- Spacer() // TODO: replace with the actual content
- }
- // --------------------------------------------------------------------------------
- // UINavigationController
- // --------------------------------------------------------------------------------
- NavigationView {
- Spacer() // TODO: replace with the actual content
- }
- // --------------------------------------------------------------------------------
- // UINavigationController
- // --------------------------------------------------------------------------------
- NavigationView {
- Spacer() // TODO: replace with the actual content
- }
- // --------------------------------------------------------------------------------
- // BoardListTableController
- // --------------------------------------------------------------------------------
- List {
- Spacer() // TODO: replace with the actual content
- }
- // --------------------------------------------------------------------------------
- // SensorListTableController
- // --------------------------------------------------------------------------------
- List {
- Spacer() // TODO: replace with the actual content
- }
- // --------------------------------------------------------------------------------
- // UINavigationController
- // --------------------------------------------------------------------------------
- NavigationView {
- Spacer() // TODO: replace with the actual content
- }
- // --------------------------------------------------------------------------------
- // UINavigationController
- // --------------------------------------------------------------------------------
- NavigationView {
- Spacer() // TODO: replace with the actual content
- }
- // --------------------------------------------------------------------------------
- // Dynamic Size Helper
- // --------------------------------------------------------------------------------
- struct DynamicSizeHelper {
- static private let baseViewWidth: CGFloat = 414.0
- static private let baseViewHeight: CGFloat = 808.0
- static func getHeight(_ height: CGFloat) -> CGFloat {
- return (height / baseViewHeight) * UIScreen.main.bounds.height
- }
- static func getWidth(_ width: CGFloat) -> CGFloat {
- return (width / baseViewWidth) * UIScreen.main.bounds.width
- }
- static func getOffsetX(_ x: CGFloat) -> CGFloat {
- return (x / baseViewWidth) * UIScreen.main.bounds.width
- }
- static func getOffsetY(_ y: CGFloat) -> CGFloat {
- return (y / baseViewHeight) * UIScreen.main.bounds.height
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement